Apache Camel - transaction in routes

六眼飞鱼酱① 提交于 2019-12-21 10:51:22

问题


I have a general question about Apache Camel. I wasn't able to find whether the aggregator is transacted. If it is transacted, how the transactions are implemented and how fast the aggregation is?


回答1:


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.



来源:https://stackoverflow.com/questions/6993149/apache-camel-transaction-in-routes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!