O'Reilly logo

Head First EJB by Bert Bates, Kathy Sierra

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

Architectural overview: Message-driven beans

Message-driven beans don’t have a client view. That means they don’t have interfaces (Remote or local) that expose methods to the client. In other words, message-driven beans don’t have a Home or EJBObject. They don’t have a Home interface or a Component interface.

image with no caption
  1. The client sends a message to a JMS messaging service.

  2. The messaging service delivers the message to the container.

  3. The container gets a message-driven bean out of the pool.

  4. The container delivers the message to the bean (by calling the bean’s onMessage() MessageListener interface method).

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