In this chapter, we covered how to set up JMS connection factories, JMS message queues, and JMS message topics in GlassFish using the GlassFish web console.
We also covered how to send messages to a message queue via the javax.jms.JMSProducer
interface.
Additionally, we covered how to receive messages from a message queue via the javax.jms.JMSConsumer
interface. We also covered how to asynchronously receive messages from a message queue by implementing the javax.jms.MessageListener
interface.
We also saw how to use these interfaces to send and receive messages to and from a JMS message topic.
We also covered how to browse messages in a message queue without removing them from the queue via the javax.jms.QueueBrowser
interface.
Finally, we saw how to set up and interact with durable subscriptions to JMS topics.
In the next chapter, we will cover how to secure Java EE applications.