Analyzing results of a process using the JMS interface

Why and when to perform this task

An interruptible process runs asynchronously. Its output message is not automatically returned when the process completes. The message must be retrieved explicitly. You can get the results of the process only if you specified a JMSReplyToQueue and used the call verb to instantiate the process.

Steps for this task

  1. Analyze the results of the process:
    In the example, OrderNo is a message type known to the system. When an ObjectMessage is passed in the request, an object message is returned.
    Message m = queueReceiver.receive();
    if (m instanceof ObjectMessage)
    {
    	ClientObjectWrapper wrapper = (ClientObjectWrapper)m.getObject();
    	OrderNo output = (OrderNo)wrapper.getObject();
    }



Searchable topic ID:   t6macffj
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/wfapi/tasks/t6macffj.html

Library | Support | Terms of Use | Feedback