Hi, I am pretty new to camel and was wondering if there was a way to get
camel to write the .done file (in the producer) once the transaction is
committed.
for instance:
<route id="test_transaction_rollback">
<from
uri="file://{{root.mess.folder}}/Test_From?delay=5000&move=done/${date:now:yyyy-MM-dd}/${file:name}&moveFailed=error/${file:name.noext}-${date:now:yyyyMMddHHmmssSSS}.${file:ext}&doneFileName=${file:name.noext}.trg"/>
<transacted ref="PROPAGATION_REQUIRED" />
<multicast stopOnException="true">
<to
uri="file://{{root.mess.folder}}/Test_To?doneFileName=${file:name.noext}.trg"/>
<to
uri="file://{{root.mess.folder}}/Test_To2?doneFileName=${file:name.noext}.trg"/>
<rollback/>
</multicast>
</route>
Once it hits rollback, the source file does move to the error directory, but
seems to have no impact on the files (including done) that are now in the
Test_To and Test_To2.
It would be nice to have the .done file created after the transaction is
complete (or committed).
Any suggestions on how I could achieve this would really help.
Thanks
Rakesh
--
View this message in context:
http://camel.465427.n5.nabble.com/Transactional-File-Producer-tp5748379.html
Sent from the Camel - Users mailing list archive at Nabble.com.