Websphere MQ Everyplace

examples.mqbridge.administration.commandline
Class MQQMgrProxyCreator

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

public class MQQMgrProxyCreator
extends MQeAbstractCmdLineAdminTool

A command-line tool to create an MQ queue manager proxy object.

Syntax

java examples.mqbridge.administration.commandline.MQQMgrProxyCreator <bridgeName> <proxyName> <hostName> <qMgr> <iniFile>

Parameters

bridgeName
The name of the parent bridge.
proxyName
The name of the WMQ queue manager for which you are creating the proxy.
hostName
The name of the host machine on which the WMQ queue manager sits. If this is set to "null" then connections to the WMQ queue manager will use the WMQ java bindings rather than the WMQ java client classes, with the consequential performance increase. Only specify "null" if your WMQ queue manager is on the same machine as the WMQe queue manager you are configuring.
qMgr
The name of the WMQe queue manager to which the administration message is to be sent to, and which will have a new MQQMgrProxy 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
MQQMgrProxyCreator()
           
 
Method Summary
 void activate(java.lang.String[] args)
          Gathers command-line parameters into variables and calls a method which creates the proxy object.
protected  void createMQQMgrProxy(java.lang.String bridgeName, java.lang.String proxyName, java.lang.String hostName, 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

MQQMgrProxyCreator

public MQQMgrProxyCreator()
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 a method which creates the proxy object.

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

createMQQMgrProxy

protected void createMQQMgrProxy(java.lang.String bridgeName,
                                 java.lang.String proxyName,
                                 java.lang.String hostName,
                                 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 for which the new proxy object will be created.
proxyName - The name of the new MQ queue manager proxy object. This will correspond to the name of the WMQ queue manager it will represent.
hostName - The host name on which the WMQ queue manager is located. A special value of "null" indicates that the WMQ queue manager is sited on the local host. (and that the WMQ java bindings will be used under the covers, which offer improved performance over specifying "localhost", "127.0.0.1" or the name of the local host machine).
targetQMgr - The name of the queue manager on which the new proxy will be created.
myQMgr - A reference to an active MQe queue manager which will be used to send and receive MQe administration messages and responses.
Returns:
void
Throws:
java.lang.Exception

Websphere MQ Everyplace