Websphere MQ Everyplace

examples.queuemanager
Class MQeMemoryQM

java.lang.Object
  |
  +--examples.queuemanager.MQeMemoryQM

public class MQeMemoryQM
extends java.lang.Object

To create a queue manager in-memory, with no disk footprint at all, use it and destroy it.

The steps performed by this example application are:


Field Summary
static short[] version
           
 
Constructor Summary
MQeMemoryQM()
          Constructor for MQeMemoryQM.
 
Method Summary
 void define(java.lang.String queueManagerName)
          Defines the queue manager using a memory adapter.
 void get()
          Gets a simple message from the system default local queue.
 java.lang.String inventQueueManagerName()
          Invents a queue manager name for use in this example
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 in-memory queue manager.
 void stop()
          Stops the in-memory queue manager.
 void traceOff()
          Turns MQe trace off.
 void traceOn()
          Turns MQe trace on.
 void undefine()
          Removes any definitions on the queue manager which were previously defined.
 
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

MQeMemoryQM

public MQeMemoryQM()
Constructor for MQeMemoryQM.

Method Detail

main

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

This method will perform the following operations:


traceOn

public void traceOn()
             throws java.lang.Exception
Turns MQe trace on.

java.lang.Exception

inventQueueManagerName

public java.lang.String inventQueueManagerName()
Invents a queue manager name for use in this example


define

public void define(java.lang.String queueManagerName)
            throws java.lang.Exception
Defines the queue manager using a memory adapter.

All configuration and messaging data is stored in memory.

java.lang.Exception

start

public void start()
           throws java.lang.Exception
Starts the in-memory 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 in-memory queue manager.

java.lang.Exception

undefine

public void undefine()
              throws java.lang.Exception
Removes any definitions on the queue manager which were previously defined.

java.lang.Exception

traceOff

public void traceOff()
              throws java.lang.Exception
Turns MQe trace off.

java.lang.Exception

Websphere MQ Everyplace