Running the Large Messaging sample
You can run the
Large Messaging sample to perform the following processing:
- Read a WebSphere MQ message with an XML payload containing a
repeated structure within it.
- Split each of the repeats into a single WebSphere MQ message.
- Write a WebSphere MQ message that confirms that the input
message was successfully split into multiple messages.
You might see warning messages such as Unresolvable message field reference in the Problems view of the WebSphere Message
Broker Toolkit. The messages refer to the ESQL files in the Message Broker project of the sample but can
be safely ignored. The warnings do not affect the behavior of the sample at run time.
If you encounter any problems when you run the sample,
see Resolving problems when running samples in
the WebSphere Message Broker documentation.
Use the following steps to run the Large Messaging sample:
- In the WebSphere Message Broker Toolkit ensure the sample message flows and message set have been deployed.
- In the Broker Development view, expand the LargeMessaging Message Broker project, double-click
SampleInputMessage.mbtest to open the file in the Test Client.
- In the Test Client click Enqueue.
- Click Send Message to place a
WebSphere MQ message on the
input queue of the Large Messaging message flow.
- In the Test Client click Dequeue.
- Click Get Message to read a
message from the LARGE_MESSAGING_SLICING_COMPLETE queue.
- Examine the retrieved message. The message indicates that
there were 10 messages declared in the SaleListCount element of the
input message and that 10 records were processed.
When you have observed that the value of the declared and actual
message count is the same, you have successfully run the large
messaging
sample.
Back to sample home