Apache的骆驼 - 交易的途径 [英] Apache Camel - transaction in routes

查看:226
本文介绍了Apache的骆驼 - 交易的途径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Apache的骆驼一个一般性的问题。我没能找到聚合是否被处理。如果是交易,如何交易的实现和聚合是有多快?

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.

骆驼在行动书第8章和9 convers这更详细信息。

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

这篇关于Apache的骆驼 - 交易的途径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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