Deploying a Message-Driven Bean

   

Sending Messages to a Message-Driven Bean

Because the message-driven bean has no remote or home interface, it is not called directly by a client. In fact, only the container communicates with the message-driven bean instance directly by calling the onMessage method and passing a JMS message from the destination.

As a message-driven bean provider, you don't have to do anything more than provide the necessary business logic when the onMessage method is called and to ensure that the deployment information is correct. From that point, the container manages the life cycle of the bean instances.



Special Edition Using Enterprise JavaBeans 2.0
Special Edition Using Enterprise JavaBeans 2.0
ISBN: 0789725673
EAN: 2147483647
Year: 2000
Pages: 223

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net