Chapter 10. Messaging and message-driven EJBs

Overview

Message-driven EJBs are new in Version 2.0 of the EJB Specification. This chapter begins with a discussion of enterprise messaging in general, with a particular focus on the practical benefits of this technology. We then discuss the JMS specification and the general procedures for sending messages using the JMS API. This leads to a discussion of the problems of asynchronous communicaton in the EJB architecture, which is essentially a request-response system, and how the use of message-driven EJBs can help in development of asynchronous services. We then discuss the development and use of message-driven EJBs themselves, illustrated by examples from the Prestige Bike Hire application.

Get Applied Enterprise JavaBeans™ Technology 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.