Websphere MQ Everyplace

examples.mqbridge.administration.commandline
Class MQeBridgesQuery

java.lang.Object
  |
  +--examples.mqbridge.administration.commandline.MQeBridgesQuery

public class MQeBridgesQuery
extends java.lang.Object

A command-line tool to query all the attributes of a bridges object.

Syntax

java examples.mqbridge.administration.commandline.MQBridgesQuery <qMgr> <iniFile>

Parameters

qMgr
The name of the queue manager to which the admin msg should be sent.
iniFile
The fully-qualified path name of the .ini file of the server queue manager.

Example

java ...MQBridgesQuery MyQMgr C:\MQe\QMgrs\MyQMgr\MyQMgr.ini

Queries and displays all attributes of the bridges object obtained from the queue manager.


Field Summary
static java.lang.String syntax
          Syntax of the command.
static short[] version
           
 
Constructor Summary
MQeBridgesQuery()
           
 
Method Summary
 void activate(java.lang.String[] args)
          Gathers the parameters and passes them to a method which does the command.
static void main(java.lang.String[] args)
          Entry point from the command line.
 void queryMQBridges(java.lang.String targetQMgr, MQeQueueManager myQMgr)
          Creates an admin message which will query a bridges object, and send it to a named queue manager.
 
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

syntax

public static final java.lang.String syntax
Syntax of the command.

See Also:
Constant Field Values
Constructor Detail

MQeBridgesQuery

public MQeBridgesQuery()
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 the parameters and passes them to a method which does the command.

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

queryMQBridges

public void queryMQBridges(java.lang.String targetQMgr,
                           MQeQueueManager myQMgr)
                    throws java.lang.Exception
Creates an admin message which will query a bridges object, and send it to a named queue manager.

When it gets a response, a summary of the information obtained will be output to the System.out stream.

Parameters:
targetQMgr - The name of the MQe queue manager on which the bridge will be created.
myQMgr - A reference to an active MQe queue manager, used to send mesages from and receive messages using.
Returns:
void
Throws:
java.lang.Exception

Websphere MQ Everyplace