Websphere MQ Everyplace

examples.administration.commandline
Class RemoteQueueCreator

java.lang.Object
  |
  +--examples.administration.commandline.MQeAbstractCmdLineAdminTool
        |
        +--examples.administration.commandline.RemoteQueueCreator

public class RemoteQueueCreator
extends MQeAbstractCmdLineAdminTool

To start a queue manager and add a remote queue definition to its configuration.

Syntax

java examples.administration.commandline.RemoteQueueCreator <queue_name> <hosting_queue_manager> <mode> <compressor> <cryptor> <authenticator> <queue_manager_name> <ini_file> <storage_adapter>

Parameters

queue_name
is the name of the remote queue we are creating.
hosting_queue_manager
is the name of the queue manager on which the queue actually exists.
mode
Either "Synchronous" or "Asynchronous"
compressor
The name of the class (or alias which resolves into a class) indicating which compressor the queue should use to store messages on the disk. Use "null" if you don't want a compressor.
cryptor
The name of the class (or alias which resolves into a class) indicating which cryptor the queue should use to store messages on the disk. Use "null" if you don't want a cryptor.
authenticator
The name of the class (or alias which resolves into a class) indicating which authenticator the queue should use to store messages on the disk. Use "null" if you don't want an authenticator.
queue_manager_name
is the name of the queue manager on which the remote queue definition is to be created on.
ini_file
Name of the ini file used to open a client queue manager, to send the admin messages from.
storageLocation
A string, following the syntax <adapter>:<path> Where the adapter is a class name without the .class extension, and the path is the name of the directory in which the files containing queue messages are stored. eg: com.ibm.mqe.adapers.MQeDiskFieldsAdapter:C:\ServerQMgr23\RemoteQ48 Specify "default" if you want to set this to the default value chosen by MQe.


Field Summary
static java.lang.String ASYNCHRONOUS_PARAM
           
static java.lang.String SYNCHRONOUS_PARAM
           
static short[] version
           
 
Fields inherited from class examples.administration.commandline.MQeAbstractCmdLineAdminTool
ADMIN_Q_NAME, REPLY_TO_Q, TIMEOUT_MILLISECS
 
Constructor Summary
RemoteQueueCreator()
           
 
Method Summary
 void activate(java.lang.String[] args)
          Does all the work.
static void createRemoteQueue(java.lang.String q, java.lang.String qmgr, java.lang.String hostingQMgr, MQeQueueManager myQMgr, byte synchronousMode, java.lang.String compressorClass, java.lang.String cryptorClass, java.lang.String authenticatorClass, java.lang.String storageLocation)
          Creates an admin message which will create a queue, and sends it to the queue manager.
static void main(java.lang.String[] args)
          Entry point from the command line.
 
Methods inherited from class examples.administration.commandline.MQeAbstractCmdLineAdminTool
checkAdminReply, primeAdminMsg, processAdminMsg, sendWaitMessage
 
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

SYNCHRONOUS_PARAM

public static final java.lang.String SYNCHRONOUS_PARAM
See Also:
Constant Field Values

ASYNCHRONOUS_PARAM

public static final java.lang.String ASYNCHRONOUS_PARAM
See Also:
Constant Field Values
Constructor Detail

RemoteQueueCreator

public RemoteQueueCreator()
Method Detail

main

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


activate

public void activate(java.lang.String[] args)
              throws java.lang.Exception
Does all the work.

Parameters:
args -
Returns:
void
Throws:
java.lang.Exception

createRemoteQueue

public static void createRemoteQueue(java.lang.String q,
                                     java.lang.String qmgr,
                                     java.lang.String hostingQMgr,
                                     MQeQueueManager myQMgr,
                                     byte synchronousMode,
                                     java.lang.String compressorClass,
                                     java.lang.String cryptorClass,
                                     java.lang.String authenticatorClass,
                                     java.lang.String storageLocation)
                              throws java.lang.Exception
Creates an admin message which will create a queue, and sends it to the queue manager.

Parameters:
q - The name of the queue to be created.
qmgr - The queue manager on which the remote queue definition will be created.
hostingQMgr - The queue manager to which the new remote queue definition referrs.
myQMgr - A reference to an active MQe queue manager, which will be used to send and receive MQe administration messages and responses.
synchronousMode - Whether the remote queue is to be created in "synchronous" or "asynchronous" mode.
compressorClass - The name of the compression class to use (or alias which resolves to a class name) Should include the .class extension. Specify "null" if you don't want to use a compressor.
cryptorClass - The name of the cryptor class to use (or alias which resolves to a class name) Should include the .class extension. Specify "null" if you don't want to use a cryptor.
authenticatorClass - The name of the authenticator class to use (or alias which resolves to a class name) Should include the .class extension. Specify "null" if you don't want to use an authenticator
storageLocation - A string, following the syntax <adapter>:<path> Where the adapter is a class name without the .class extension, and the path is the name of the directory in which the files containing queue messages are stored. eg: com.ibm.mqe.adapers.MQeDiskFieldsAdapter:C:\ServerQMgr23\RemoteQ48 Specify "default" if you want to set this to the default value chosen by MQe.
Returns:
void
Throws:
java.lang.Exception

Websphere MQ Everyplace