|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.assured.SendTestMessagesAssured
To send a never-ending sequence of test messages from one queue manager to another, with a specified time period waiting between successive send operations.
If the application is stopped, by killing the task, pick-up where we left off in an assured manner, so if messages were half-put but not confirmed, then these get confirmed, and we move onto the next message.
Syntax
java examples.assured.SendTestMessagesAssured <queue_name> <hosting_queue_manager> <ini_file> <seconds> <maxMsgsToSend> <stateFile>
Parameters
Field Summary | |
static java.lang.String |
FIELD_NAME_MSG_INDEX
The name of the field in the message in which the number of the message is put. |
long |
sleepMilliSeconds
The number of seconds the program sleeps for after it's posted the message... |
static short[] |
version
The version of this program |
Constructor Summary | |
SendTestMessagesAssured()
|
Method Summary | |
void |
activate(java.lang.String[] args)
Gets the command-line parameters, and loops sending messages. |
static void |
main(java.lang.String[] args)
Entry point from the command line. |
protected void |
sendTestMsg(java.lang.String targetQ,
java.lang.String targetQMgr,
MQeQueueManager myQMgr,
java.lang.String stateFile)
Sends a test message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
public long sleepMilliSeconds
public static final java.lang.String FIELD_NAME_MSG_INDEX
Constructor Detail |
public SendTestMessagesAssured()
Method Detail |
public static void main(java.lang.String[] args)
public void activate(java.lang.String[] args) throws java.lang.Exception
args
-
java.lang.Exception
protected void sendTestMsg(java.lang.String targetQ, java.lang.String targetQMgr, MQeQueueManager myQMgr, java.lang.String stateFile) throws java.lang.Exception
targetQ
- A String containing the target Queue nametargetQMgr
- A String containing the target Queue Manager namemyQMgr
- MQeQueueManager ObjectstateFile
- A String containing the path of statefile
java.lang.Exception
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |