O'Reilly logo

EJB 3.1 Cookbook by Richard M. Reese

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

Chapter 3. Message-Driven Beans

In this chapter, we will cover:

  • Handling a text-based message
  • Handling a byte-based message
  • Handling a stream-based message
  • Handling a map-based message
  • Handling an object-based message
  • Using MDB in a publish-and-subscribe application
  • Using MDB in a point-to-point application
  • Specifying which types of messages to receive using the message selector
  • Browsing messages in a message queue

Introduction

A Message-Driven Bean (MDB) implements business logic in an asynchronous fashion. The client does not receive a response to the message from the MDB. A client will send a message to a queue or topic. The message is then retrieved and processed by the MDB. A queue differs from a topic in that a message in a queue is sent to a single ...

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