Book Image

Java EE 5 Development with NetBeans 6

Book Image

Java EE 5 Development with NetBeans 6

Overview of this book

Table of Contents (17 chapters)
Java EE 5 Development with NetBeans 6
Credits
About the Author
About the Reviewers
Preface
Identifying Performance Issues with NetBeans Profiler

Chapter 8. Messaging with JMS and Message Driven Beans

The Java Messaging Service (JMS) is a standard Java EE messaging API that allows loosely coupled, asynchronous communication between Java EE components.

NetBeans includes good support to aid us in creating applications that take advantage of the JMS API, generating a lot of necessary boilerplate code, allowing us to focus on the business logic of our application.

We will cover the following topics in this chapter:

  • Introduction to JMS

  • Creating an enterprise project to take advantage of JMS

  • Creating JMS resources from NetBeans

  • Implementing a JMS message producer

  • Implementing a JMS message consumer

  • Processing JMS messages with message driven beans

Introduction to JMS

JMS is a standard Java EE 5 API that allows loosely coupled, asynchronous communication between Java EE components. Applications taking advantage of JMS do not interact directly with each other, instead JMS message producers send messages to a message destination (JMS Queue or Topic...