【发布时间】:2016-03-19 19:30:36
【问题描述】:
我正在阅读 Mule in Action(非常好)并尝试列出 7.5 关于事务可靠性模式的清单,但它并没有像我预期的那样工作。 流程不会等待消息被放入队列并立即返回 http 消息。我错过了什么吗?这不应该被包装在异步块中吗?
<flow name="orderSubmission">
<http:inbound-endpoint exchange-pattern="request-response"
host="localhost" port="8081"
path="order"/>
<cxf:jaxws-service
serviceClass="com.prancingdonkey.service.OrderSubmissionService"/>
<component
class="com.prancingdonkey.service.OrderSubmissionServiceImpl"/>
<async>
<jms:outbound-endpoint queue="order.submit">
<jms:transaction action="ALWAYS_BEGIN"/>
</jms:outbound-endpoint>
</async>
</flow>
【问题讨论】:
标签: mule