Apache Camel - 路由中的事务 [英] Apache Camel - transaction in routes

查看:39
本文介绍了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?

推荐答案

将消息发送到聚合器可以在事务中运行.

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

您需要一个带有聚合器的持久存储,让传出消息充当事务.请参阅有关持久性的文档http://camel.apache.org/aggregator2

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

例如,有一个开箱即用的基于 JDBC 和 HawtDB(基于文件)的持久支持.它是可插拔的,因为您还可以构建您的自定义.

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 书的第 8 章和第 9 章对此进行了更详细的讨论.

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

这篇关于Apache Camel - 路由中的事务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆