Websphere MQ Everyplace

examples.administration.commandline
Class SendTestMessage

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

public class SendTestMessage
extends MQeAbstractCmdLineAdminTool

To send a test message from one queue manager to another.

Syntax

java examples.administration.commandline.SendTestMessage <queue_name> <hosting_queue_manager> <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 queue actually exists
ini_file
Name of the ini file used to open a client queue manager, to send the admin messages from.


Field Summary
static long SLEEP_SECONDS
          The number of seconds the program sleeps for after it's posted the message...
static short[] version
           
 
Fields inherited from class examples.administration.commandline.MQeAbstractCmdLineAdminTool
ADMIN_Q_NAME, REPLY_TO_Q, TIMEOUT_MILLISECS
 
Constructor Summary
SendTestMessage()
           
 
Method Summary
 void activate(java.lang.String[] args)
          Does all the work.
static void main(java.lang.String[] args)
          Entry point from the command line.
protected  void sendTestMsg(java.lang.String q, java.lang.String qmgr, MQeQueueManager myQMgr)
          Sends a test message.
 
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

SLEEP_SECONDS

public static final long SLEEP_SECONDS
The number of seconds the program sleeps for after it's posted the message... To give any asynchronous threads some chance of sending the message on to a different queue manager.

See Also:
Constant Field Values
Constructor Detail

SendTestMessage

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

sendTestMsg

protected void sendTestMsg(java.lang.String q,
                           java.lang.String qmgr,
                           MQeQueueManager myQMgr)
                    throws java.lang.Exception
Sends a test message.

Parameters:
q - QueueName
qmgr - QMgrName
myQMgr - MQeQueueManager Object
Returns:
void
Throws:
java.lang.Exception

Websphere MQ Everyplace