O'Reilly logo

Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications by Paul Anderson, Gail Anderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8.3. Designing Message-Driven Beans

Now that we've introduced you to JMS, let's learn about message-driven beans. Simply put, a message-driven bean is an asynchronous consumer of JMS messages. Message-driven beans are stateless, server-side, transaction-aware components that receive messages from a JMS topic or queue. Like stateless session beans, message-driven beans do not store conversational state. They do not have a home or remote interface, nor do they have any business methods.

Figure 8-6 shows how a client interacts with a message-driven bean. When a message is sent from the client to a topic or queue destination in the JMS server, the EJB container fetches a bean instance from the message-driven bean pool. The container reads the message ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required