Apache Camel - 路由中的事务
我有一个关于 Apache Camel 的一般性问题。我无法找到聚合器是否已进行交易。如果是交易,交易是如何实现的,聚合的速度有多快?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将消息发送到聚合器可以在事务中运行。
您需要一个带有聚合器的持久存储来让传出消息充当事务。请参阅有关持久性的文档
http://camel.apache.org/aggregator2
例如,有一个基于 JDBC 和 HawtDB (基于文件)开箱即用的持续支持。它是可插拔的,因为您也可以构建您的自定义。
《Camel in Action》一书第 8 章和第 9 章更详细地讨论了这一点。
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.