You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by George <to...@yahoo.com> on 2014/11/08 23:57:03 UTC

Transactionality* for File + Splitter

Hi folks,

I have this simple case : 
- two routes ( let's assume that the endpoints used are  : file, seda/direct
and a mock/other external service ) : 
##########
  from("file:D:/test?move=done").log("Something").to("seda:test");
  from("seda:test").
                split().method(TestBean.class).stopOnException()
                .to("mock:echo");
##########
- what I want to achieve is that the file should be moved ONLY after the
last message triggered by the splitter finished with success, is like I
consider the messages generated by the splitter a batch, and iff the batch
(all messages) was sent with success to "mock:echo", then move the original
file to "done" directory.

Can I achieve this in a Camel way ?

The current functionality moves the file to "done" directory if the first
message generated by the splitter is sent with success .

Could someone give me a hint, a tip ? 

Regards,
George 



--
View this message in context: http://camel.465427.n5.nabble.com/Transactionality-for-File-Splitter-tp5758759.html
Sent from the Camel - Users mailing list archive at Nabble.com.