You can propagate JMS header field data from inbound messages to outbound messages by adding a JMS message service to your business process.
Use the following example to guide you through the process.
To use JMS message headers in outbound messages:
Create a New Project from Template using the WorkSpace Project with Schemas template.
Define a Reply To Address Business Process variable to capture the JMS inbound message data:
Expand the Business Process Variables section.
Select operation1Request in the business process canvas.
Right-click Local Variables and select New variable from the context menu.
Name the variable. Select newVariable# from the Local Variables list, expand the Properties panel, and enter a variable name in the Name field, such as JMSHdrCtxt .
Define the Datatype. Select Reply-To Address.
Select operation1Request in the business process canvas again.
Select JMSHdrCtxt variable from the Reply-To-Address Variable drop-down menu.
Save the service. Select File|Save from the main menu bar.
Add a JMS service to the business process:
Open the Service Explorer, expand the messageService you just created, and navigate to its operations.
Drag the operation onto the canvas to desired location.
Select the message service on the canvas to define its properties.
Select JMSHdrCtxt variable from the Reply-To-Address Variable drop-down menu in the Properties panel.
Save the service. Select File|Save from the main menu bar.
Using Default JMS Message Header Information in a Business Process
Using User-Defined JMS Header Information in a Business Process
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com