Questions tagged [message-driven-bean]

A message-driven bean is an enterprise bean that allows J2EE/Java EE applications to process messages asynchronously.

A message-driven bean is an enterprise bean that allows J2EE/Java EE applications to process messages asynchronously. It acts as a JMS message listener, which is similar to an event listener except that it receives messages instead of events. The messages may be sent by any J2EE/Java EE component, or by a JMS application, or a system that does not use Java technology at all.

Resources:

438 questions
2
votes
1 answer

Glassfish Message-Driven bean message size

I'm trying to use a message-driven bean in my webapp, but everytime it throws me this exception : com.sun.messaging.jmq.jmsserver.util.BrokerException: [B4122]: Can not add message 1-127.0.1.1(b0:1a:c1:66:46:a9)-1-1336769823653 to destination…
StepTNT
  • 3,867
  • 7
  • 41
  • 82
1
vote
3 answers

Log4j for Message Driven Beans

So, here's my problem: I have a message driven bean X and would like to make use of Logger in X's onMessage() method. Lets presume that I have a single instance of the bean running in my app server, hence, I would initialize log4j in ejbCreate().…
Jay
  • 2,394
  • 11
  • 54
  • 98
1
vote
1 answer

JMS and MessageDriven EJB Bean

I have a problem with message driven EJB. I have too applications Web Service and EJB application which contains MessageDrivenBean. To send message to JMS I'm using ObjectMessage: Here is my code: Connection connection =…
Paulius Matulionis
  • 23,085
  • 22
  • 103
  • 143
1
vote
1 answer

Why would the Context Lookup Fail for this Specific JMS Message Queue in Glassfish?

I have a message queue in Glassfish with a name like "String.String.etc". Whenever I try to send a message to that MQ, I get the following error message: Lookup failed for 'java:comp/env/[MQ Name]' in…
user919860
  • 3,083
  • 4
  • 19
  • 16
1
vote
1 answer

Tibco how to get original queue name for undelivered messages in DLQ $sys.undelivered

I am currently designing error handling for unprocessed JMS messages for a customer. Tibco EMS is used as a broker, MDB in Weblogic as consumer. I am evaluating Tibco DLQ capabilities - the $sys.undelivered queue for undelivered messages. We want…
Matej
  • 6,004
  • 2
  • 28
  • 27
1
vote
1 answer

Configuring MDB in Openejb 3.1.4 and Tomcat

I am using Tomcat & OpenEJB 3.1.4.Working with Message Driven Bean(EJB 2.0 - MDB) to recieve messages from MQ.What all configuration or Setup I need to do with OpenEJB-Tomcat to recieve messages via MDB ?
Md Faraz
  • 307
  • 1
  • 4
  • 16
1
vote
1 answer

How to make an MDB to listen programmatically created queue

Is the any option in hornetq to make an MDB to listen multiple queue. If so kindly provide a sample .
vairam
  • 471
  • 1
  • 11
  • 26
1
vote
2 answers

How configure the pool size of @MessageDriven without using annotation?

We have a unique EAR file and we would like to deploy it on two distinct servers. On the first one, we don't want any MessageDriven beans to be processed (this server is dedicated to synchronous requests and to produce JMS messages). On the second…
Xavier Portebois
  • 3,354
  • 6
  • 33
  • 53
1
vote
3 answers

Pause MDB message Processing

Can we pause the MDB message processing for some time? For example: Jboss 1-deployed MDB for message processing. Jboss 2:-Bean for gathering user details. If the MDB from jboss 1 calls bean in jboss 2 for getting users details. If this is the case,…
vairam
  • 471
  • 1
  • 11
  • 26
1
vote
1 answer

JMS consumer on a different JVM

My application puts in messages in a JMS queue. A bean that implements MDB and MessageListener pops messages from this queue. All this happens on a single JVM . What I want to do is: I want the MDB and the other instances that it would get from pool…
wantobegeek
  • 1,665
  • 3
  • 19
  • 19
1
vote
0 answers

Difference between JMS thread and JMS session worker thread

The thread dump of my application shows "JMSThreads" and "JMS session worker threads". The # of "JMS Session worker threads" in the thread dump taken at peak time(when a lot of tasks are triggered off) is equal to the maxSessions that I have set in…
wantobegeek
  • 1,665
  • 3
  • 19
  • 19
1
vote
1 answer

Implementing MDB Pool Listener in JBoss JMS

I've an application deployed in JBoss with multiple MDBs deployed using JBoss JMS implementation, each one with a different configuration of MDB Pool Size. I was looking forward to some kind of mechanism where we can have a listener on each MDB Pool…
Ravi Rao
  • 291
  • 1
  • 4
  • 12
1
vote
1 answer

@Resource-annotation in a MessageDrivenBeans abstract parent class?

this is ok @MessageDriven(...) public class EventMDB implements MessageListener { @Resource private MessageDrivenContext context; //onMessage(Message) ... but does it also work, if i put the resource annotation in an abstract…
user600148
  • 41
  • 3
1
vote
1 answer

How do I increase the value of 'InProcessMessageCount' for jms queue in jboss?

I am using JMS based on Jboss 4.2.3 and jdk1.5.0_14. however the MDB pool is configured to maximum size 20, the maximum value of InProcessMessageCount is 15 only. I did many reties to utilize the messages consumption from the queue. I modified the…
user1017344
  • 181
  • 1
  • 1
  • 11
1
vote
1 answer

Working MDB example in JBoss 7.0.1?

Here's an EJB3 MDB that used to work for me in JBoss 5.1: @TransactionAttribute( TransactionAttributeType.NOT_SUPPORTED…
Andrew Regan
  • 5,087
  • 6
  • 37
  • 73