Message-Driven Bean is said to be the only bean which can consume message asynchronously...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bo_Lee
Posted On:   Monday, July 2, 2001 02:56 PM

It says:"Message- driven bean allows J2EE applications to process JMS messages asynchronously. Ordinary enterprise beans allow you to send messages and to receive them synchronously, but not asynchronously."
Ordinary bean can also send and receive messages from queue and durable topic, right? So why they can't do send and receive asynchronously? What do you mean by " asynchronously" here?

Bo

Re: Message-Driven Bean is said to be the only bean which can consume message asynchronously...

Posted By:   sivaram_ponraj  
Posted On:   Monday, July 2, 2001 07:17 PM

Dear Bo ,
Message driven bean implements messagedriven listener .So once a message drivenbean is deployed with the destination Queue or Topic mentioned in the deployment descriptor it will always listen to the destination and once if the destination receive any message it will be consumed by the MDB.
This is asynchronous receiving.unless in the case of other enterprise beans only if any client invokes the bean it can receive the message from the destiation.But in MDB, container will invoke whenever needed.
About | Sitemap | Contact