The Java Message Service (JMS) API provides a mechanism for Java EE applications to send messages to each other. Java EE 7 introduces JMS 2.0, a new version of JMS that greatly simplifies the development of applications involving messaging functionality.
JMS applications do not communicate directly; instead, message producers send messages to a destination, and message consumers receive that message from the destination.
The message destination is a message queue when the Point-to-Point (PTP) messaging domain is used, and a message topic when the Publish/Subscribe (pub/sub) messaging domain is used.
In this chapter, we will cover the following topics: