Test the event processing scenario Use utility
sample_folder\mqsiput.exe to deliver a legacy
item message to the adapter via the WebSphere Business Integration Message
Broker application. The mqsiput utility has the following
syntax:
mqsiput [queue] [queue manager] < [message
file].
The sample delivery message LegacyItem.txt resides in the
sample_folder directory. For this tutorial, enter
mqsiput Samples/LegacyApp/Item/WBIMB
crossworlds.queue.manager < LegacyItem.txt
at the command line. If successful, a sample item message is delivered
to the WebSphere Business Integration Message Broker application that is
simulating a legacy application.
- Note:
- Optionally you may add the loopback message flow to your broker execution
group. (This flow is provided with the IBM WebSphere Business
Integration Message Broker adapter sample message flows.) Adding the
loopback message flow will loop any message sent from the adapter back to the
adapter after being processed by the WebSphere Business Integration Message
Broker application.
Once the WebSphere Business Integration Message Broker application
delivers a message to the input queue, the adapter retrieves it and attempts
to convert it into a Sample_WBIMB_LegacyItem_XMLDoc business
object. The key to having the adapter poll the message is to ensure
that the message format equals the value associated with the
Sample_WBIMB_LegacyItem_XMLDoc business object in meta-object
Sample_WBIMB_MO_Config. If it identifies the message format
as LI_UP, the adapter then calls the data handler to convert the
message to business object Sample_WBIMB_LegacyItem_XMLDoc with verb
Update. The newly created business object is subsequently
delivered to the WBI Broker and then re-delivered to the Visual Test
Connector.