I am using jms outbound channel adapter to send jms message ,but before sending the jms message i am setting JMSReplyTo to TEMP.Q3 .
Here is the sample configuration .
<int:channel id="OutgoingMessageChannel" />
<int:channel id="headerInputChannel" />
<int-jms:outbound-channel-adapter id="ticketOutbound" connection-factory="jmsConnectionFactory" destination-name="TEMP.Q2" channel="OutgoingMessageChannel"/>
<int:header-enricher input-channel="headerInputChannel" output-channel="OutgoingMessageChannel">
<int:header name="JMSReplyTo" value="TEMP.Q3"/>
</int:header-enricher>
The above approach does not work ,i am not able to see "JMSReplyTo" field getting set to "TEMP.Q3"
I know i can use jms outbound gateway to do the same but i dont want it to be synchronous in nature.
Could anyone please let me know if this is possible using jms outbound channel adapter ?
Do i need to follow some other approach ?
EDIT
Here is the new working configuration .
<int:channel id="OutgoingMessageChannel" />
<int:channel id="headerInputChannel" />
<int-jms:outbound-channel-adapter id="ticketOutbound" connection-factory="jmsConnectionFactory" destination-name="TEMP.Q2" channel="OutgoingMessageChannel"/>
<int:header-enricher input-channel="headerInputChannel" output-channel="OutgoingMessageChannel">
<int:header name="jms_replyTo" ref="replyQueue"/>
</int:header-enricher>
<bean id="replyQueue" class="com.ibm.mq.jms.MQQueue">
<constructor-arg value=" TEMP.Q3" />
</bean>