JMS 在路由之间提交 - 我想在 Camel 中提交路由之间的事务

JMS Commit between the routes - I want to commit the transaction between the routes in Camel

我在 camel 中使用 JMS 事务

我有两条路线

from("jms:queue:test).process(new Processor(Exchange exchange){
   //place the message to hdfs
   //using hadoop fs api
}).to("direct:ssh")

from("direct:ssh").to(sshCommand)

我想要的是在发送消息后直接ssh路由提交JMS事务。不要等待直接 ssh 路由结果。

目前,只有当我的 ssh 命令给出结果时才会提交事务,是否可以在

之间提交

提前致谢。

我能够执行上述操作而不是直接使用 seda

from("jms:queue:test).process(new Processor(Exchange exchange){
   //place the message to hdfs
   //using hadoop fs api
}).to("seda:ssh")

from("seda:ssh").to(sshCommand)