Websphere MQ Everyplace

examples.mqbridge.administration.commandline
Class MQConnectionCreator

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

public class MQConnectionCreator
extends MQeAbstractCmdLineAdminTool

A command line tool to create an WMQ client connection object on the WebSphere MQ Everyplace bridge on a specified WMQe queue manager.

Syntax

java examples.mqbridge.administration.commandline.MQConnectionCreator <bridgeName> <proxyName> <connectionName> <port> <syncQName> <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.
port
The port number on which the WMQ queue manager is listening on for client connections
syncQName
The name of the sync queue to use (a local queue on the WMQ queue manager used to store state)
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
MQConnectionCreator()
           
 
Method Summary
 void activate(java.lang.String[] args)
          Does all the work.
protected  void createMQConnection(java.lang.String bridgeName, java.lang.String proxyName, java.lang.String connectionName, int port, java.lang.String syncQName, java.lang.String targetQMgr, MQeQueueManager myQMgr)
          Creates an admin message which will create an WMQ connection on the 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

MQConnectionCreator

public MQConnectionCreator()
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

createMQConnection

protected void createMQConnection(java.lang.String bridgeName,
                                  java.lang.String proxyName,
                                  java.lang.String connectionName,
                                  int port,
                                  java.lang.String syncQName,
                                  java.lang.String targetQMgr,
                                  MQeQueueManager myQMgr)
                           throws java.lang.Exception
Creates an admin message which will create an WMQ connection on the bridge, and sends it to a named queue manager.

Parameters:
bridgeName - The name of the bridge for which an WMQ connection will be created.
proxyName - The name of the WMQ queue manager proxy for which connection will be created. ie: The future parent object of the WMQ client connection.
connectionName - The name of the WMQ client connection which will be created. It should match the name of an WMQ server connection channel.
port - The port on which the WMQ system is listening on for in-coming client connections.
syncQName - The name of the sync queue used by WMQe. This is a local queue which must exist on the WMQ queue manager (whose name is given by the "proxyname" parameter above) It must be a local queue, persistent, and read-writable.
targetQMgr - The queue manager on which the new WMQ connection will be created.
myQMgr - A reference to an active WMQe queue manager. The queue manager will be used to send and receive WMQe administration messages and responses.
Returns:
void
Throws:
java.lang.Exception

Websphere MQ Everyplace