This content has been marked as final.
Show 1 reply
-
1. Re: Camel not deleted if file consumer is used with pollEnrich
rhn-support-pchhabra Jun 29, 2017 6:24 AM (in response to angelbaranda)The bug has been marked "Not Fixed" in Fuse 6.2.1
As a workaround you can try this:
Certain properties of the resource Exchange need to be copied over to the original Exchange for the Camel markerFile to be deleted correctly.These properties are dynamic in their names but append Exchange.FILE_LOCK_FILE_ACQUIRED and Exchange.FILE_LOCK_FILE_NAME at the end of their names.
E.g.
/Users/TestCases/poll-enrich-test/target/pollEnrich/enrich.txt-CamelFileLockFileAcquired
/Users/TestCases/poll-enrich-test/target/pollEnrich/enrich.txt-CamelFileLockFileName
An alternative is to copy all properties of the resource Exchange to the original Exchange but this *may* overwrite existing Exchange properties.
original.getProperties().putAll(resource.getProperties());