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

Setting Up Your Environment

Starting and Testing a Message Broker

To Start a Broker

To Test a Broker

Developing a Client Application

To Produce Messages

To Consume Messages

Compiling and Running a Client Application

To Compile and Run the HelloWorldMessage Application

Deploying a Client Application

Example Application Code

2.  Using the Java API

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

Example Application Code

The Message Queue installation includes example programs illustrating both JMS and JAXM messaging (see Chapter 5, Working with SOAP Messages). They are located in the IMQ_HOME/examples directory.

Each directory (except the JMS directory) contains a README file describing the source files included in that directory. The table below lists the directories of interest to Message Queue Java clients.

Table 1-2 Example Programs

Directory
Contents
helloworld
Sample programs showing how to create and deploy a JMS client in Message Queue, including the steps required to create administered objects and to look up such objects with JNDI from within client code
jms
Sample programs demonstrating the use of the JMS API with Message Queue
jaxm
Sample programs demonstrating the use of SOAP messages in conjunction with JMS in Message Queue
applications
Four subdirectories containing source code for the following:
  • A GUI application using the JMS API to implement a simple chat application

  • A GUI application using the Message Queue JMS monitoring API to obtain a list of queues from a Message Queue broker and browse their contents with a JMS queue browser

  • The Message Queue Ping demo program

  • The Message Queue Applet demo program

monitoring
Sample programs demonstrating the use of the JMS API to monitor a message broker
jdbc
Examples for plugging in a PointBase and an Oracle database
imqobjmgr
Examples of imqobjmgr command files