O'Reilly logo

EJB 3 in Action, Second Edition by Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan

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 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 ...

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