I send a message to Queue from jsp.
then the MDB listening to messages get the message from Queue and process.
it is ok.
I need to get the message out from MDB.can we do some redirect or dispatcher to send message to jsp or servlet?
Nothing. Listening to messages, accepting messages, and processing messages is all what an MDB can do.
Samanthi perera
Ranch Hand
Joined: Jan 08, 2010
Posts: 510
posted
0
I read that MDB can change the entity bean
Manning in Action EJB(Page 75/708)
All three of the processes persist data. The PlaceBidBean needs to add a bid
record to the database. Similarly, the PlaceOrderBean must add an order record.
Alternatively, the OrderBillingMDB updates the order record to reflect the results
of the billing process. These database changes are performed through two entities
in the JPA-managed persistence tier—the Bid and Order entities. While the
PlaceBidBean uses the Bid entity, the PlaceOrderBean and OrderBillingMDB use
the Order entity
[Devaka: Changed Code tags for Quote tags]
This message was edited 1 time. Last update was at by Devaka Cooray
That's what I meant by 'processing messages'. In fact, MDBs are Listeners - it listens to messages and does whatever it is supposed to do, once a message is received.
This message was edited 1 time. Last update was at by Devaka Cooray
subject: can we send the our message from onMessage method