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.
Get Special Edition Using Enterprise JavaBeans™ 2.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.