Websphere MQ Everyplace

examples.mqbridge.administration.commandline
Class MQListenerCreator

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

public class MQListenerCreator
extends MQeAbstractCmdLineAdminTool

A command-line tool to create an WMQ transmission queue listener on an WMQe queue manager.

Syntax

java examples.mqbridge.administration.commandline.MQListenerCreator <bridgeName> <proxyName> <connectionName> <listenerName> <transformer> <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.
listenerName
The name of the listener. This must match the name of a transmission queue on WMQ transformer. The name of the transformer to use to convert messages pulled from the WMQ transmission queue This is a class name, including the .class extension. Specify "null" if you wish to default the transformer to use the one specified on the bridge object.
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
MQListenerCreator()
           
 
Method Summary
 void activate(java.lang.String[] args)
          Collects command-line parameters into variables, and calls the command which creates the listener.
protected  void createListener(java.lang.String bridgeName, java.lang.String proxyName, java.lang.String connectionName, java.lang.String listenerName, java.lang.String transformerClass, java.lang.String targetQMgr, MQeQueueManager myQMgr)
          Creates an admin message which will create a bridge transmission queue listener, and sends it to a named queue manager.
static void main(java.lang.String[] args)
          Entry point when the tool is invokde from the comand-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

MQListenerCreator

public MQListenerCreator()
Method Detail

main

public static void main(java.lang.String[] args)
Entry point when the tool is invokde from the comand-line.

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

activate

public void activate(java.lang.String[] args)
              throws java.lang.Exception
Collects command-line parameters into variables, and calls the command which creates the listener.

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

createListener

protected void createListener(java.lang.String bridgeName,
                              java.lang.String proxyName,
                              java.lang.String connectionName,
                              java.lang.String listenerName,
                              java.lang.String transformerClass,
                              java.lang.String targetQMgr,
                              MQeQueueManager myQMgr)
                       throws java.lang.Exception
Creates an admin message which will create a bridge transmission queue listener, and sends it to a named queue manager.

Parameters:
bridgeName - The name of the bridge for which the listener will be created.
proxyName - The name of the WMQ queue manager proxy for which the transmission queue listener will be created.
connectionName - The name of the client connection object for which the transmission queue listener will be created.
listenerName - The name of the listener to create. This name should match the name of a transmission queue on the WMQ queue manager.
transformerClass - The class to use (including the .class extension) which will be used by the listener to convert between WMQe and WMQ message format. A special value of "null" means the default transformer for the bridge is used.
targetQMgr - The queue manager on which the listener will be created.
myQMgr - A reference to an active WMQe queue manager which will be used to send and receive admin messages and responses.
Returns:
void
Throws:
java.lang.Exception

Websphere MQ Everyplace