O'Reilly logo

Enterprise Java Programming with IBM WebSphere by Daniel Berg, Greg Hester, Mark Weitzel, Gary Craig, David Pitt, Jim Amsden, Kyle Brown, Russell Stinehour, Peter M. Jakab

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 27. Introduction to Message-Driven Beans

So far we have taken a fairly extensive look at entity and session beans. A common thread running through the design of all the EJBs that we have examined so far is that they all respond synchronously to local Java or RMI-IIOP calls. With the EJB 2.0 specification, a new EJB bean was introduced that allows business logic to be invoked asynchronously. MDBs are EJBs, which listen for JMS messages. In this chapter, we will introduce you to some core JMS and MDB concepts. We will begin by examining an overview of JMS, then introduce why MDBs are required, and finally examine two examples and how to execute them in the WSAD environment. Figure 27.1 shows how MDBs fit in our road map.

Figure 27.1. Where ...

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