【问题标题】:JMS Commit between the routes - I want to commit the transaction between the routes in Camel路由之间的 JMS 提交 - 我想在 Camel 中的路由之间提交事务
【发布时间】:2018-08-29 17:31:58
【问题描述】:

我在骆驼中使用 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 命令给出结果时才会提交事务,是否可以在两者之间提交

提前致谢。

【问题讨论】:

    标签: transactions apache-camel spring-jms


    【解决方案1】:

    我可以做上面的操作,而不是直接使用我使用 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)
    

    【讨论】:

      猜你喜欢
      • 2023-03-29
      • 2016-10-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多