Chapter 4. Messaging and developing MDBs
This chapter covers
- The basics of message-driven beans (MDBs)
- Sending and receiving messages
- @JMSConnectionFactory annotation
- JMSContext, JMSConsumer, and JMSProducer classes
In this chapter we’ll take a closer look at developing message-driven beans (MDBs). We’ll provide you with an overview of these powerful concepts and show in the context of the ActionBazaar application how they can be used to solve real-world problems. First, we’ll introduce the fundamental concepts of messaging and then you’ll explore the basics of the Java Messaging Service (JMS) by creating a message producer. We’ll then take a look at MDBs and how EJB 3 simplifies the task of building message consumers.
It’s important that ...
Get EJB 3 in Action, Second Edition 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.