Websphere MQ Everyplace

examples.mqbridge.administration.commandline
Class MQBridgeQueueCreator

java.lang.Object
  |
  +--examples.administration.commandline.MQeAbstractCmdLineAdminTool
        |
        +--examples.mqbridge.administration.commandline.MQBridgeQueueCreator

public class MQBridgeQueueCreator
extends MQeAbstractCmdLineAdminTool

A command-line tool which creates an MQ bridge queue on a queue manager.

Syntax

java examples.mqbridge.administration.commandline.MQBridgeQueueCreator <bridgeName> <proxyName> <connectionName> <qName> <transformerClass> <compressor> <cryptor> <authenticator> <qMgr> <iniFile>

Parameters

bridgeName
The name of the parent bridge.
proxyName
The name of the WMQ queue manager proxy
connectionName
The name of the connection. This must match the name of a server-channel connection on the WMQ queue manager.\n
qName
The name of the WMQ queue to which this bridge queue remotely referrs.
transformerClass
The name of the java class used to convert between message formats. Must include the .class extension. Specify "null" if you want to use the default transformer for this bridge.
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.
qMgr
The name of the WMQe queue manager to which the administration message is to be sent to, and which will have the new object configured as a result. The queue manager must be a bridge-enabled queue manager.
iniFile
The fully-qualified path of the .ini file which describes a queue manager which will be be used to issue the administration message


Field Summary
static short[] version
           
 
Fields inherited from class examples.administration.commandline.MQeAbstractCmdLineAdminTool
ADMIN_Q_NAME, REPLY_TO_Q, TIMEOUT_MILLISECS
 
Constructor Summary
MQBridgeQueueCreator()
           
 
Method Summary
 void activate(java.lang.String[] args)
          Gathers command-line parameters into variables, and calls the method to create the bridge queue.
protected  void createBridgeQueue(java.lang.String bridgeName, java.lang.String proxyName, java.lang.String connectionName, java.lang.String qName, java.lang.String transformerClass, java.lang.String compressorClass, java.lang.String cryptorClass, java.lang.String authenticatorClass, java.lang.String targetQMgr, MQeQueueManager myQMgr)
          Creates an admin message which will create a bridge, and sends it to a named 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
Constructor Detail

MQBridgeQueueCreator

public MQBridgeQueueCreator()
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
Gathers command-line parameters into variables, and calls the method to create the bridge queue.

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

createBridgeQueue

protected void createBridgeQueue(java.lang.String bridgeName,
                                 java.lang.String proxyName,
                                 java.lang.String connectionName,
                                 java.lang.String qName,
                                 java.lang.String transformerClass,
                                 java.lang.String compressorClass,
                                 java.lang.String cryptorClass,
                                 java.lang.String authenticatorClass,
                                 java.lang.String targetQMgr,
                                 MQeQueueManager myQMgr)
                          throws java.lang.Exception
Creates an admin message which will create a bridge, and sends it to a named queue manager.

Parameters:
bridgeName - The name of the bridge which the queue will use to communicate with MQ
proxyName - The name of the MQ queue manager proxy which will be used to connect to the WMQ queue manager when this MQBridge queue is used.
connectionName - The name of the client connection which will be used to get a connection when the new bridge queue wishes to talk to the WMQ system.
qName - The name of the bridge queue. Normally corresponds to the name of the queue which exists on the WMQ system.
transformerClass - The name of the transformer class to be used by the new bridge queue when messages are converted between WMQe and WMQ format. A special value of "null" will cause the bridge queue to use the default transformer set up in the bridge object configuration.
targetQMgr - The name of the queue manager on which the bridge queue will be created.
myQMgr - A reference to an active WMQe queue manager, which will be used to send and receive administration messages.
Returns:
void
Throws:
java.lang.Exception

Websphere MQ Everyplace