JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle GlassFish Server Message Queue 4.5 Developer's Guide for Java Clients
search filter icon
search icon

Document Information

Preface

1.  Overview

2.  Using the Java API

Messaging Domains

Working With Connections

Obtaining a Connection Factory

Looking Up a Connection Factory With JNDI

Overriding Configuration Settings

Instantiating a Connection Factory

Using Connections

Creating Secure Connctions (SSL)

Working With Destinations

Looking Up a Destination With JNDI

To Look Up a Destination With JNDI

Instantiating a Destination

Temporary Destinations

Working With Sessions

Acknowledgment Modes

Transacted Sessions

Working With Messages

Message Structure

Message Header

Message Properties

Message Body

Composing Messages

Composing Text Messages

Composing Stream Messages

Composing Map Messages

Composing Object Messages

Composing Bytes Messages

Sending Messages

Receiving Messages

Creating Message Consumers

Message Selectors

Durable Subscribers

Receiving Messages Synchronously

Receiving Messages Asynchronously

Acknowledging Messages

Browsing Messages

Closing a Consumer

Processing Messages

Retrieving Message Header Fields

Retrieving Message Properties

Processing the Message Body

Processing Text Messages

Processing Stream Messages

Processing Map Messages

Processing Object Messages

Processing Bytes Messages

3.  Message Queue Clients: Design and Features

4.  Using the Metrics Monitoring API

5.  Working with SOAP Messages

6.  Embedding a Message Queue Broker in a Java Client

A.  Warning Messages and Client Error Codes

Index

Messaging Domains

The Java Message Service (JMS) specification, which Message Queue implements, supports two commonly used models of interaction between message clients and message brokers, sometimes known as messaging domains:

JMS applications are free to use either of these messaging models, or even to mix them both within the same application. Historically, the JMS API provided a separate set of domain-specific object classes for each model. While these domain-specific interfaces continue to be supported for legacy purposes, client programmers are now encouraged to use the newer unified domain interface, which supports both models indiscriminately. For this reason, the discussions and code examples in this manual focus exclusively on the unified interfaces wherever possible. Table 2-1 shows the API classes for all three domains.

Table 2-1 Interface Classes for Messaging Domains

Unified Domain
Point-to-Point Domain
Publish/Subscribe Domain
Destination
Queue
Topic
ConnectionFactory
QueueConnectionFactory
TopicConnectionFactory
Connection
QueueConnection
TopicConnection
Session
QueueSession
TopicSession
MessageProducer
QueueSender
TopicPublisher
MessageConsumer
QueueReceiver
TopicSubscriber