Websphere MQ Everyplace

examples.os4690
Class Run

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

public class Run
extends java.lang.Object

Uses the configured queue manager previously defined by the Configure program.

A message is put to the test queue, and got from the test queue.

The resultant queue manager can then be unconfigured using the UnConfigure program.

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


Field Summary
static short[] version
           
 
Constructor Summary
Run()
           
 
Method Summary
 void get()
          Gets a simple message from the system default local queue.
static void main(java.lang.String[] args)
          Entry point from the command line.
 void put()
          Puts a simple message to the system default local queue.
 void start()
          Starts the queue manager.
 void stop()
          Stops the queue manager.
 
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

Run

public Run()
Method Detail

main

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

This method will perform the following operations:


start

public void start()
           throws java.lang.Exception
Starts the queue manager.

java.lang.Exception

put

public void put()
         throws java.lang.Exception
Puts a simple message to the system default local queue.

java.lang.Exception

get

public void get()
         throws java.lang.Exception
Gets a simple message from the system default local queue.

java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Stops the queue manager.

java.lang.Exception

Websphere MQ Everyplace