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
0
votes
1 answer

How can I store messages in a JMS Queue without using a Database?

I have sent messages to a JMS Queue using a Servlet; and there is Message Listener for that Queue but I m not using those messages anywhere; but when I check the Messages in the Queue using WebLogic Admin console; it is not displaying any messages…
Developer
  • 161
  • 2
  • 3
  • 15
0
votes
1 answer

EJB MDB with static method

I have created an MDB to act as a simulator which reads a message from a queue and then write a response to a different queue. To control this simulator i defined some public static methods in the MDB to stop reading/writing and to know if it's…
user2770375
0
votes
1 answer

Is there any server config file to invoke MDB?

I am having ejb-jar.xml and jboss.xml files in my application of JMS with MDB. I have configured the queue destination in destination-service.xml. But my MDB is not invoking. Are there any server files to be configured to invoke MDB?
0
votes
1 answer

MDB exception handling

I have an MDB that calls some methods in its onMessage() method.Inside the catch block of onMessage() I run an update query using preparestatement.I notice that if the flow reaches the catch block it does not commit the update statement.Is it not…
Ayan Biswas
  • 1,641
  • 9
  • 39
  • 66
0
votes
1 answer

specifying the message listener interface of an MDB

I am trying to fully define my message driven beans using the deployment descriptor as I am deploying my app to Websphere and it doesn't handle annotations very nicely. I'm wondering if there is a way of specifying the message listener interface of…
coderatchet
  • 8,120
  • 17
  • 69
  • 125
0
votes
1 answer

issue - Weblogic JMS Persistent Messages redelivered to MDB Even after successful processing

I have a weblogic JMS persistent queue with a small sized message. However, my MDB logic needs atleast 2 minutes to process the message. I am testing my setup with only one message in queue and the problem I have is whilst the MDB is still…
0
votes
1 answer

Message-driven bean outputs only one value

Im new to java message-driven beans and i have a little problem. I made a test web project(server is glassfish 4.0). In messageclient, i'm sending 3 Strings to message queue. If i understand message-driven beans correctly, message-driven bean …
Salko
  • 43
  • 5
0
votes
1 answer

Dynamically change selector

Is there a posibility to change which messages bean should get, using selector, while program is running? I can't change annotations, is there another option?
Marcin Marczyk
  • 93
  • 2
  • 10
0
votes
1 answer

MDB deployed on WAS 7 cluster

I have a MDB deployed on Jboss that gets messages from a Websphere MQ queue,looking in each message header for GroupId and Sequence information.Once it gets all sequences for a group,puts together the payload of each message it received to form one…
0
votes
2 answers

JMS messages moving to DLQ

JMS mesages are sometimes moving to the DLQ without throwing any exception. Jboss server instance used is 4.3.0.GA_CP04_EAP. We are using an an MDB that listens for incoming messages on a queue A, when it receives any message it updates the…
rupam
  • 1
  • 3
0
votes
0 answers

Way to configure system properties for EJB?

Maybe a duplicate question, however, I did not find any answer to it. I have an MDB, I'd like to configure some system properties in descriptor files, these properties must be available during deployment. where should I put these property name-value…
user1684651
  • 390
  • 1
  • 8
  • 21
0
votes
1 answer

Deploy MDB on WebLogic 10.3

I am new to MDB, so my questions may sound simple. I implemented an MDB( serving as a Consumer ) using JDeveloper 11.1.7 and built a JAR file using deployment functionality. Now I need to deploy it to WebLogic 10.3 app server. I have several…
vs777
  • 564
  • 2
  • 11
  • 24
0
votes
1 answer

JMS Stand alone MQ provider and distributed transaction

I have a standalone MQ provider on network which has a queue. I also have multiple Java EE servers with MDBs who consume messages from that queue. So, I'm forced to make the connection factory with XATransaction. So, my question is: In the MDB's,…
user2770375
0
votes
2 answers

Display JMS message from MDB to a view(JSF, SWING Applet or whatever)

I'm currently developing a JMS system. I have been able to develop the publisher (JSF), the subscriber (MDB) and I can print the JMS messages to the console from the onMessage method of the MDB. My problem is that I can't manage to display them in…
0
votes
1 answer

NoClassDefFoundError while using Asynchronous http request

I've got an strange problem when trying to combine an JMS with MDB queue. The thing is that I want to send an JMS to the queue, and when receiving the message, make 2 asynchronous http get to a server. I've managed to set up the queue and…