Reputation: 67
<int-jms:channel id="inputChannel" queue-name="WorkRequest"/>
<int-jms:inbound-gateway request-channel="inputChannel" request-destination-name="WorkRequest" extract-request-payload="true" reply-timeout="12000000"/>
<int:chain input-channel="inputChannel">
<int-http:outbound-gateway
url="http://localhost:8080/Validate.php?fileid={foo}"
mapped-request-headers="jms*,reply*,HTTP_REQUEST_HEADERS"
http-method="GET"
reply-timeout="12000000" extract-request-payload="true">
<int-http:uri-variable name="foo" expression="headers.fileid"/>
</int-http:outbound-gateway>
</int:chain>
The response from http outbound is not routed to temporary JMS queue. I would like to know how should I redirect to the proper queue. I used header-enricher with replyTo but it did not work. Please help. The consumed ActiveMQTextMessage has temporary queue where the response needs to be posted.
Upvotes: 0
Views: 1327
Reputation: 506
Can you explain why you have a JMS-backed channel between the JMS inbound gateway and the HTTP outbound gateway? If you remove that (rely on a direct channel), the headers should pass along as the HTTP response is used to create the JMS reply.
Upvotes: 1