Summary
In this chapter, we discussed at length how to send messages with Jakarta Messaging, using both the PTP and pub/sub messaging domains.
Topics we covered included the following:
- How to send messages to a message queue via the
jakarta.jms.JMSProducer
interface - How to receive messages from a message queue via the
jakarta.jms.JMSConsumer
interface - How to asynchronously receive messages from a message queue by implementing the
jakarta.jms.MessageListener
interface - How to use the preceding interfaces to send and receive messages to and from a message topic
- How to browse messages in a message queue without removing the messages from the queue via the
jakarta.jms.QueueBrowser
interface - How to set up and interact with durable subscriptions to messaging topics
Armed with the knowledge in this chapter, we can now implement asynchronous communication between processes with Jakarta Messaging.