Chapter 6. Scenario: WebSphere Message Broker acting as a transaction manager 161
6.7 Testing the flow
In this section, we show the integration testing between the integration module
and the message flow in WebSphere Integration Developer. We tested the flow
by using the Integration Test Client. The test client is invoked from the context
menu of the business integration module, TransferFundModule, in the Business
Integration view.
1. Select TransferFundModule, right-click, and select Test Test Module.
2. From the Emulators section of the Configuration tab, remove
TransferFundPartner.
3. In the Initial request parameters area, enter values for the TransferReqBO
business object attributes (Figure 6-46).
Figure 6-46 TransferFund Test module
162 Using IBM WebSphere Message Broker as an ESB with WebSphere Process Server
4. Since a request-response operation is used, a response is returned indicating
the status of the transaction. The JMS messages are delivered to the queue
managers, and a TransferStatusBO business object is returned as shown in
Figure 6-47. You can look in the SystemOut log for the WebSphere Process
Server application server to view messages or errors that are produced by the
business process application.
Figure 6-47 Test module - successful transaction
5. In case of success, verify that the message has successfully reached the
output queues on the JMSPROV1 and JMSPROV2 queue managers.
Chapter 6. Scenario: WebSphere Message Broker acting as a transaction manager 163
6. You can use the same test to verify the transactionality of the message flow.
To test this, make any one of the queues, either CREDITQ on JMSPROV1 or
DEBITQ on JMSPROV2, put-Inhibited,
or shut down one of the queue
managers. The test should have results as indicated in Figure 6-48.
Figure 6-48 Test Module - transaction failure
Since a backout queue has been configured on TEST/REQUESTQUEUE, the
failing request message is backed out to BOQUEUE.
164 Using IBM WebSphere Message Broker as an ESB with WebSphere Process Server
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.253.93