The Java Messaging Service API (JMS) provides a mechanism for Java EE
applications to send messages to each other. JMS applications do not communicate
directly; instead message producers send messages to a destination, and message
consumers receive the message from the destination.
The message destination is a message queue when the Point-To-Point (PTP)
Messaging Domain is used, or a message topic when the Publish/Subscribe
(pub/sub) messaging domain is used.
In this chapter, we will cover the following topics:
- Setting up GlassFish for JMS
- Working with message queues
- Working with message topics