diippi
Apr 23rd, 2008, 10:58 AM
I want to establish a synchronous communication <request-reply> with 2 queues , i.e I will be using a request on one queue and expecting a synchronous reply back at other queue.
Is requestReplyTemplate the right thing for above scenario ?
I tried setting it up but am not able to recieve the response correctly, it does not reaches my replyhandler.
I am listening for the response through the jms-source and handing it over to the channel defined by requestReplyTemplate , but it is being sent off to the request queue instead.
In the code I see something called as RendezvousChannel listening for responses...I did not really understand.
The config is as follows :
<jms-target id="paymentsTxHistoryWmqProvider"
jms-template="paymentsTxHistoryMQJmsRequestTemplate"
channel="paymentsTxHistoryChannel" />
<jms-source id="paymentsTxHistoryWmqConsumer"
connection-factory="paymentsTxHistoryConnectionFactoryWMQ"
destination-name="${wmq.response.destination.name}"
channel="paymentsTxHistoryChannel" acknowledge="auto" />
<channel id="paymentsTxHistoryChannel" />
<beans:bean id="reqReplyTemplate" class="org.springframework.integration.channel.RequestRep lyTemplate">
<beans:constructor-arg ref="paymentsTxHistoryChannel"/>
</beans:bean>
Is requestReplyTemplate the right thing for above scenario ?
I tried setting it up but am not able to recieve the response correctly, it does not reaches my replyhandler.
I am listening for the response through the jms-source and handing it over to the channel defined by requestReplyTemplate , but it is being sent off to the request queue instead.
In the code I see something called as RendezvousChannel listening for responses...I did not really understand.
The config is as follows :
<jms-target id="paymentsTxHistoryWmqProvider"
jms-template="paymentsTxHistoryMQJmsRequestTemplate"
channel="paymentsTxHistoryChannel" />
<jms-source id="paymentsTxHistoryWmqConsumer"
connection-factory="paymentsTxHistoryConnectionFactoryWMQ"
destination-name="${wmq.response.destination.name}"
channel="paymentsTxHistoryChannel" acknowledge="auto" />
<channel id="paymentsTxHistoryChannel" />
<beans:bean id="reqReplyTemplate" class="org.springframework.integration.channel.RequestRep lyTemplate">
<beans:constructor-arg ref="paymentsTxHistoryChannel"/>
</beans:bean>