[英]Camel exception/error handling transacted route without causing client exception
[英]Camel : direct connection the next route, can it be transacted?
我有兩條通過直接:鏈接連接的駱駝路線,在這種情況下不通過JMS-Queue鏈接。
我可以在這兩條路線之間進行交易嗎?
例如
<route id="fileRoute">
..
<to uri="direct:start">
</route>
<route id="directStartRoute">
<from uri="direct:start">
<to uri="http://myhost/mypath">
</route>
是,如果第一條路線以交易開始,而您在路線之間直接使用,則該交易仍然適用。 事務管理器要求事務中發生的工作發生在同一線程上,因此需要同步路由,這是直接做的事情。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.