The JavaMessagingAPI (JMS) provides a mechanism for Java EE applications to send messages to each other. Java EE 7 introduced JMS 2.0, which greatly simplified 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 messages from that destination.
A 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:
- Working with message queues
- Working with message topics
Most application servers need to be configured in order for JMS applications to work properly. The Appendix, Configuring and deploying to GlassFish, includes instructions for configuring GlassFish. Consult your application server documentation for instructions on configuring other Java EE 8...