Sending Messages to a Message-Driven BeanBecause 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. |