Summary

In this chapter, we covered how to set up JMS connection factories, JMS message queues, and JMS message topics in GlassFish, by 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 and saw how to use the above interfaces to send and receive messages to and from a JMS message topic. We also looked at how to browse messages in a message queue without removing those messages from the queue via the javax.jms.QueueBrowser interface. Finally, we saw how to set up and interact with durable subscriptions to JMS topics.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.14.98