Websphere MQ Everyplace

examples.os4690
Class Configure

java.lang.Object
  |
  +--examples.os4690.Configure

public class Configure
extends java.lang.Object

Configures the 4690 queue manager on your disk.

The resultant queue manager can then be used by the Run program, and destroyed using the UnConfigure program.

Most solutions separate the configuration of their disk-resident queue managers from the use of those queue managers. This example does this also.


Field Summary
static short[] version
           
 
Constructor Summary
Configure()
           
 
Method Summary
 void define()
          Defines the queue manager.
 void defineTestQueue()
          Define a test queue using administration messages, so we can put a test message to it.
static void main(java.lang.String[] args)
          Entry point invoked from the command line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static short[] version
Constructor Detail

Configure

public Configure()
Method Detail

main

public static void main(java.lang.String[] args)
Entry point invoked from the command line.


define

public void define()
            throws java.lang.Exception
Defines the queue manager. And creates a test queue on the queue manager for use later.

All queues defined have names which are independent of the underlying 8.3 file system on which they depend. Each queue is set up with an explicit directory in which messages are stored.

java.lang.Exception

defineTestQueue

public void defineTestQueue()
                     throws java.lang.Exception
Define a test queue using administration messages, so we can put a test message to it.

We could have used the system default local queue, but here we are showing an example of how one might create a queue which has a long filename itself, but stores messages on an 8.3 file sysyem. * @throws Exception if there is a failure.

java.lang.Exception

Websphere MQ Everyplace