WebSphere Enterprise Service Bus for z/OS, Version 6.2.0 Operating Systems: z/OS


Overriding the JMSReplyTo destination

Some applications require a configuration where the interaction with a Java™ Message Service (JMS) is modelled as a pair of one-way interactions.

Some applications must send messages to services that might not send a reply. For example, some long-running services might not return a response quickly, or at all. In this scenarios, an application cannot use the typical request and response pattern within a mediation module because not every message will get a reply. The application must be able to model this type of service interaction. When messages are sent and received using JMS, it is easier to model the service interaction as a pair of one-way messages, rather than as a two-way message operation.

In a standard one-way JMS message, the JMSReplyTo field is ignored. If the application needs to create a two-way message exchange using a pair of one-way messages, the JMSReplyTo field must have a value to determine where the response is sent.

Using WebSphere® Integration Developer, the JMSReplyTo field can be set on a method binding for JMS imports, including Generic JMS and MQ JMS. This only applies for one-way JMS methods. You cannot edit the JMSReplyTo field using WebSphere Integration Developer for two-way methods.

When setting the JMSReplyTo field, the content should be the JNDI name of a JMS destination. At runtime, when a one-way JMS message is received, the intended JMS import is inspected to find if a JMSReplyTo value is provided. If a value is found, a JNDI lookup is performed, and the resulting JMS destination is set within the JMSReplyTo field of the message. The message is then sent on to its destination through the JMS import.

This flow of events applies for both Generic JMS bindings and MQ JMS bindings.

An error occurs during module deployment validation if a JMSReplyTo value is provided for a two-way method.

A runtime exception occurs when any one of three conditions is true:

concept Concept topic

Terms of use | Feedback


Timestamp icon Last updated: 21 June 2010


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic//com.ibm.websphere.wesb620.zseries.doc/concepts/cwesb_JMSReplyToOverride.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).