Running the Large Messaging sample

You can run the Large Messaging sample to perform the following processing:

  1. Read a WebSphere MQ message with an XML payload containing a repeated structure within it.
  2. Split each of the repeats into a single WebSphere MQ message.
  3. 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 Message Brokers Toolkit. The messages refer to the ESQL files in the sample's message flow project but can be safely ignored. The warnings do not affect the behaviour of the sample at run time.

To run the Large Messaging sample, in the Broker Application Development perspective:

  1. Ensure the sample message flows and message set have been deployed.
  2. In the Broker Development view, expand the LargeMessaging message flow project, then double-click SampleInputMessage.mbtest to open the file in the Test Client.
  3. In the Test Client click Enqueue.
  4. Click Send Message to place a WebSphere MQ message on the input queue of the Large Messaging message flow.
  5. In the Test Client click Dequeue.
  6. Click Get Message to read a message from the LARGE_MESSAGING_SLICING_COMPLETE queue.
  7. 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