Websphere MQ Everyplace

examples.administration.commandline
Class StoreAndForwardQueueQMgrAdder

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

public class StoreAndForwardQueueQMgrAdder
extends MQeAbstractCmdLineAdminTool

To start a queue manager, and add a remote queue manager name to a store and forward queue that already exists.

Syntax

java examples.administration.commandline.StoreAndForwardQueueQMgrAdder <queue_name> <hosting_queue_manager> <accepting_for_queue_manager> <queue_manager_name> <Ini_file>

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 messages will be pushed to. Specify the name of the queue manager on which the queue exists if you wish this store-and-forward queue to just collect messages, and have them retrieved by a home-server queue.
accepting_for_queue_manager
The name of the queue manager for which this store-and-forward queue will accept messages.
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.


Field Summary
static short[] version
           
 
Fields inherited from class examples.administration.commandline.MQeAbstractCmdLineAdminTool
ADMIN_Q_NAME, REPLY_TO_Q, TIMEOUT_MILLISECS
 
Constructor Summary
StoreAndForwardQueueQMgrAdder()
           
 
Method Summary
 void activate(java.lang.String[] args)
          Does all the work.
static void addTargetQMgrToStoreAndForwardQueue(java.lang.String q, java.lang.String qmgr, java.lang.String hostingQMgr, MQeQueueManager myQMgr, java.lang.String acceptForQMgr)
          Creates an admin message which will add a queue manager name to the list of queue managers for which a particular store-and-forward will accept messages.
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

StoreAndForwardQueueQMgrAdder

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

addTargetQMgrToStoreAndForwardQueue

public static void addTargetQMgrToStoreAndForwardQueue(java.lang.String q,
                                                       java.lang.String qmgr,
                                                       java.lang.String hostingQMgr,
                                                       MQeQueueManager myQMgr,
                                                       java.lang.String acceptForQMgr)
                                                throws java.lang.Exception
Creates an admin message which will add a queue manager name to the list of queue managers for which a particular store-and-forward will accept messages. The admin message is sent and the replies received using a specified queue manager.

Parameters:
q - The name of the queue to be modified.
qmgr - The queue manager on which the S&F queue definition will be modified
hostingQMgr - The queue manager to which the store-and-forward queue pushes messages.
myQMgr - A reference to an active MQe queue manager, which will be used to send and receive MQe administration messages and responses.
acceptForQMgr - The name of an MQe queue manager for which this store-and-forward queue will accept messages.
Returns:
void
Throws:
java.lang.Exception

Websphere MQ Everyplace