Message-Driven EJB Basics

Message-driven EJBs are the integration between EJB and the JMS. Like other EJB types, message-driven EJBs live within an EJB container and benefit from EJB container services such as transactions, security, and concurrency control. However, a message-driven EJB does not interact directly with clients. Instead, message-driven EJBs are JMS message listeners. A client publishes messages to a JMS destination. The JMS provider and the EJB container then cooperate to deliver the message to the message-driven EJB (see Figure 10-1).

Figure 10-1. Message-Driven EJBs

Because message-driven EJBs do not have clients, they do not ...

Get J2EE™ Applications and BEA™ WebLogic Server™ 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.