Java EE 5 Development using GlassFish Application Server:
The complete guide to installing and configuring the GlassFish Application Server and developing Java EE 5 applications to be deployed to this server
www.PACKTPUB.com  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
Book Contents Index > Chapter 7
Introduction
1: Getting Started with GlassFish
2: Servlet Development and Deployment
3: JavaServer Pages
4: Database Connectivity
5: JSP Standard Tag Library
6: JavaServer Faces
7: Java Messaging Service
8: Security
9: Enterprise JavaBeans

10: Web Services
11: Beyond Java EE

Appendix A: Sending Email from Java EE Applications

Appendix B: IDE Integration

Index

Latest Updates

Free Chapter:

Chapter 6: JavaServer Faces [ 892 kB PDF]

Code Download

Contact us

 

Chapter 7: Java Messaging Service

The Java Messaging Service API (JMS) provides a mechanism for Java EE applications to send messages to each other. JMS applications do not communicate directly; instead message producers send messages to a destination, and message consumers receive the message from the destination.

The 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:

  • Setting up GlassFish for JMS
  • Working with message queues
  • Working with message topics

Chapter 7: Java Messaging Service

  • Setting Up GlassFish for JMS
    • Setting Up a JMS Connection Factory
    • Setting Up a JMS Message Queue
    • Setting Up a JMS Message Topic
  • Message Queues
    • Sending Messages to a Message Queue
    • Retrieving Messages from a Message Queue
    • Asynchronously Receiving Messages from a Message Queue
    • Browsing Message Queues
  • Message Topics
    • Sending Messages to a Message Topic
    • Receiving Messages from a Message Topic
    • Creating Durable Subscribers
  • Summary
   

 

Paperback 400 pages
Released: October 2007
ISBN: 1847192602
ISBN 13: 978-1-847192-60-8

     

 




View the book details
on PacktPub.com

 


 

  This website is owned and maintained by Packt Publishing Ltd, 200pan lang="en-us">7. All rights reserved. Terms and Conditions/a>