<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>
来自http outbound的响应不会路由到临时JMS队列。我想知道如何重定向到正确的队列。我使用header-richher与replyTo但它没有工作。请帮忙。消耗的ActiveMQTextMessage具有临时队列,其中需要发布响应。
答案 0 :(得分:1)
您能解释为什么在JMS入站网关和HTTP出站网关之间有JMS支持的通道吗?如果你删除它(依赖于直接通道),标头应该传递,因为HTTP响应用于创建JMS回复。