开发者

Apache Camel - transaction in routes

开发者 https://www.devze.com 2023-03-26 17:00 出处:网络
I have a general question about Apache Camel. I wasn\'t able to find whether the aggregator is transac开发者_运维技巧ted. If it is transacted, how the transactions are implemented and how fast the agg

I have a general question about Apache Camel. I wasn't able to find whether the aggregator is transac开发者_运维技巧ted. If it is transacted, how the transactions are implemented and how fast the aggregation is?


Sending the messages into the aggregator can run in a transaction.

You would need a persistent store with the aggregator to let the outgoing messages act as a transaction. See the documentation about persistence http://camel.apache.org/aggregator2

For example there is a JDBC based and HawtDB (file based) persistent support out of the box. Its pluggable as you can also build your custom.

Camel in Action book chapter 8 and 9 convers this in much more details.

0

精彩评论

暂无评论...
验证码 换一张
取 消