简体   繁体   English

Apache Camel:如何在具有 FTP 端点和数据库写入访问权限的路由中执行 XA 事务管理器?

[英]Apache Camel: how to do an XA Transactional Manager in a route with an FTP-endpoint and database write access in it?

This is the route:这是路线:

from(jms:queue:xxx)
...
.process(_write_in_db_)
...
.to(ftp:yyy)

I think I need a global XA Transactional Manager that covers the whole route and commits the changes in DB and Queue only after global commit.我想我需要一个覆盖整个路由的全局XA 事务管理器,并且只有在全局提交之后才提交数据库和队列中的更改。

Unfortunatly I didn't found any examples for that case and would appriciate if anybody could say how to do it.不幸的是,我没有找到该案例的任何示例,如果有人能说出如何去做,我会很感激。

There is a excellent example @ https://github.com/FuseByExample/esb-transactions .有一个很好的例子@ https://github.com/FuseByExample/esb-transactions I have personally used this example as starting point and it works perfectly.我个人使用这个例子作为起点,它完美地工作。

In studying this example you will learn:在学习这个例子时,你将学到:

How to set up an XA-aware DataSource如何设置 XA 感知数据源

How to configure a JPA persistence unit如何配置 JPA 持久化单元

How to leverage Fuse ESB's JTA and JPA support in your routes如何在路由中利用 Fuse ESB 的 JTA 和 JPA 支持

How to configure a JMS component to support XA如何配置 JMS 组件以支持 XA

How to define a transactional route如何定义事务路由

How to configure a ResourceManager that can recover XA transactions after a crash如何配置可以在崩溃后恢复 XA 事务的 ResourceManager

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Apache Camel:如果我在路由中具有DB访问权限,然后在FTP生产者端点中具有访问权限,那么如何在Camel中实现事务路由? - Apache Camel: How do I achive a transactional route in Camel if I have a DB access in a route and then an FTP producer endpoint? Apache Camel:我是否需要使FTP消费者路由具有事务性? - Apache Camel: Do I need to make my FTP-Consumer route transactional? Apache Camel端点向文件AS400 FTP写入: - Apache Camel endpoint to write a file AS400 FTP : Apache camel如何在路由上的FTP组件上应用readLock - Apache camel how to apply readLock on FTP component from route Apache骆驼从ftp到数据库 - Apache camel from ftp to database 如何在发生故障时重新计划Apache Camel Quartz(CronScheduledRoutePolicy)端点路由 - How to reschedule Apache Camel Quartz (CronScheduledRoutePolicy) endpoint route on failure 如何将字节或流写入 Apache Camel FTP 以传输文件 - How to write byte or stream to Apache Camel FTP to transfer file 如何在apache camel中对servlet端点进行单元测试? - How do you unit test a servlet endpoint in apache camel? Apache Camel和Apache ActiveMQ中的XA事务 - XA transaction in Apache Camel and Apache ActiveMQ 如何在骆驼路线上模拟 Kafka 消费者端点? - How to Mock a Kafka Consumer endpoint on a Camel Route?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM