In this chapter:
Message-Driven EJB Lifecycle
Writing Deployment Descriptors for Message-Driven Beans
Message-Driven Beans and Concurrency
Using Transactions with Message-Driven Beans
Message-Driven Bean Advantages
Session and entity beans use a well-defined interface for processing workflow from client requests. Enterprise JavaBeans (EJB) clients use the home and remote interfaces to make synchronous Remote Method Invocation (RMI) calls to the EJB server. The client thread making the EJB call blocks until the EJB server call returns. As discussed in Chapter 7, Enterprise Messaging with the Java Message Service (JMS), messaging allows an asynchronous model. Instead of waiting for the server's response, the client ...