Finally, use the following steps to test the communication between
the sender and receiver:
- On the sender workstation, in a new command window, put
a message on the queue by entering the following command:
amqsput LOCAL.DEF.OF.REMOTE.QUEUE
This
puts the message to the local definition of the remote queue, which in turn
specifies the name of the remote queue.
- Type the text of the message, then press Enter twice.
- On the receiver workstation, get the message from the queue
by entering the following command:
amqsget APPLE.QUEUE
The
sample program starts, and your message is displayed. After a short pause,
the sample ends and the command prompt is displayed again.
The verification of the server-to-server installation is now complete.
You are ready to start using WebSphere® MQ (see
the WebSphere MQ System
Administration Guide).