|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.administration.commandline.MQeAbstractCmdLineAdminTool | +--examples.administration.commandline.AddQueueAlias
A command-line tool to allow someone to add an alias to a queue without programming anything in Java. This version uses the admin messages to send the request to either a local or a remote queue manager. It can be called from the command line or from a Java program. The tool can be used to add aliases to all types of queue.
Syntax
java examples.administration.commandline.AddQueueAlias <queueName> <hostingQMgrName> <alias> <qMgr> <iniFile>
Examples
Assume two queue manangers: 1) ClientQM 2) ServerQM. ServerQM has a local queue called OrderQ and ClientQM has a remote queue called OrderQ on ServerQM. If the add alias requests are issued from ClientQM and ClientQM startup parameters are provided in ini file ClientQM.ini, the following invocations could be made:
Field Summary | |
static short[] |
version
|
Fields inherited from class examples.administration.commandline.MQeAbstractCmdLineAdminTool |
ADMIN_Q_NAME, REPLY_TO_Q, TIMEOUT_MILLISECS |
Constructor Summary | |
AddQueueAlias()
|
Method Summary | |
void |
activate(java.lang.String[] args)
Does all the work. |
static void |
addQueueAlias(java.lang.String queueName,
java.lang.String qmgr,
java.lang.String hostingQMgr,
java.lang.String alias,
MQeQueueManager myQMgr)
Creates an admin message which will cause an alias to be added to a queue then it sends it to a 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 |
public static short[] version
Constructor Detail |
public AddQueueAlias()
Method Detail |
public static void main(java.lang.String[] args)
args
- Command-line arguments being passed in.
public void activate(java.lang.String[] args) throws java.lang.Exception
args
- Command-line arguments to be used.
java.lang.Exception
public static void addQueueAlias(java.lang.String queueName, java.lang.String qmgr, java.lang.String hostingQMgr, java.lang.String alias, MQeQueueManager myQMgr) throws java.lang.Exception
queueName
- The name of the of the queue to add the alias to.myQMgr
- The reference to an active MQe queue manager object, which will be
used to send the admin message, and receive the reply.
java.lang.Exception
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |