0

I am using JMS Transaction in camel

I have two routes

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)

what I want is after sending the message to direct ssh route commit the JMS transaction. Don't wait for the direct ssh route result.

Currently, Transaction is committed only when my ssh command gives the result, Is it possible to commit in between

Thanks in advance.

Aman
  • 226
  • 1
  • 4
  • 17

1 Answers1

0

I was able to do the above operation instead of using direct I used 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)
Aman
  • 226
  • 1
  • 4
  • 17