134 Enabling SOA Using WebSphere Messaging
Figure 5-27 Channel status in WebSphere MQ Explorer
5.2.4 Test the connection
You can test the connection by sending a test message from WebSphere MQ to
the WebSphere Application Server using the sample program RFHUtil:
1. Start RFHUtil.
2. Select MQ in the Queue Manager field.
3. Select SOURCE in the Queue Name field.
4. Click the Read File button to select the XML file Airline1.xml (see “Sample
XML files” on page 270).
5. Click the Write Q button to send the message.
Figure 5-28 Put a test message on the queue using RFHUtil
Chapter 5. Point-to-point runtime configuration 135
Check that the message is delivered to WebSphere Application Server:
1. In the WebSphere administrative console, select Services Integration
Buses.
2. Click the bus name.
3. Click Destinations.
4. Click the destination name TARGET.
5. Click Queue Points.
6. Click the queue point name.
7. Select the Runtime tab. You should see that the current message depth is 1.
Figure 5-29 Queue point for TARGET queue in the bus
8. Click Messages.
9. Click the message identifier number.
10.You will see the JMS message properties and runtime message properties.
136 Enabling SOA Using WebSphere Messaging
11.Click Message Body. You should see the Airline1.xml message you sent
through WebSphere MQ.
Figure 5-30 Delivered message body
Next, try a request/reply test:
1. Start RFHUtil.
2. Select MQ in the Queue Manager field.
3. Select REQUEST in the Queue Name field.
4. Click the Read File button to read the same XML file.
5. Click Write Q to send the message.
Chapter 5. Point-to-point runtime configuration 137
Figure 5-31 Send a test message using RFHUtil
The sample program:
򐂰 Puts the message on the REQUEST queue in MQ.
򐂰 The message is then transferred to the REPLY queue in WAS through the
TO.WAS channel.
򐂰 But the REPLY queue in WAS is an alias queue targeting the RESULT queue
in MQ. So this message is sent to the RESULT queue.
So you should be able to see the message in the RESULT queue in MQ.
Figure 5-32 Result of the request/reply test
To use RFHUTIL to read the data from the RESULT queue:
1. Start RFHUtil.
2. Select MQ in the Queue Manager field.

Get Enabling SOA Using WebSphere Messaging now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.