examples.mqbridge.application.GetFromMQ

The example programs in this package are useful for proving that WebSphere MQ Everyplace and WebSphere MQ can communicate with each other. These examples are WebSphere MQ bindings programs that use the Java classes and are driven by a simple command-line syntax.

GetFromMQ
This class destructively reads any message appearing on a specified WebSphere MQ queue, and provides timing statistics on when the message arrives. Optionally the message content can be dumped to the standard output screen.

This example is useful when testing a link between WebSphere MQ Everyplace and WebSphere MQ, to see what throughput is being achieved between the two systems. Scripts dealing with connectivity between WebSphere MQ Everyplace and WebSphere MQ can refer to and use this class.

PutFromMQ
This class puts a message to an WebSphere MQ queue, such that the user can specify the target queue and the target queue manager. It specifically uses the long form of the MQQueueManager.accessQueue() method to make use of any WebSphere MQ Everyplace queue manager alias definitions that might be defined on the WebSphere MQ queue.