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

Chapter 2

Using the Java API

This chapter describes how to use the classes and methods of the Message Queue Java application programming interface (API) to accomplish specific tasks, and provides brief code samples to illustrate some of these tasks. (For clarity, the code samples shown in the chapter omit an exception check.) The topics covered include the following:

This chapter does not provide exhaustive information about each class and method. For detailed reference information, see the JavaDoc documentation for each individual class. For information on the practical design of Message Queue Java programs, see Chapter 3, Message Queue Clients: Design and Features