570 WebSphere Information Integrator Q Replication: Fast Track Implementation Scenarios
#################################################################
# Run on PEER2
#################################################################
#
# Start the sender channel
#
runmqchl -c PEER2_TO_PEER1 -m QM_PEER2 &
After the channels have been started, some of the several queue pairs may be
tested to ensure that communications are working properly. We tested local as
well as remote queues, as follows.
Testing local queues
Example 6-19 lists a local queue on the PEER1 and PEER2 nodes.
Example 6-19 Local queues
####################################################
Simple Queues: amqsput/amqsget
####################################################
PEER2_RESTARTQ QM_PEER2
PEER1_RESTARTQ QM_PEER1
For each of these queues, we inserted a message (using
/usr/mqm/samp/bin/amqsput) and read back the message (using
/usr/mqm/samp/bin/amqsget) on the same node, as shown in Example 6-20.
Testing local queues ensures that they are set up properly, but does not test the
connectivity between the queue managers—for that we need to test the remote
queues.
Example 6-20 Test put and get from a local queue
####################################################
# Execute the following command to put a message into the queue
####################################################
/usr/mqm/samp/bin/amqsput PEER2_RESTARTQ QM_PEER2
Sample AMQSPUT0 start
target queue is PEER2_RESTARTQ
This is a test message to a local queue
Sample AMQSPUT0 end
#
####################################################
# Execute the following command to get the message from the queue.
# The program should display the text one entered above then pause
# for a few seconds waiting for more messages.
####################################################