Hi All,
Is there any mechanism to handle file transfer from source folder to target
endpoint on the basis of specific condition ? In my case I'm using Apache
Camel 2.14.2 version in my application to handle incoming files for its
processing. I need to check a condition through java code in database table
data if it returns TRUE only then the routing process should work.
Here is my XML DSL -
<route id="route2">
<from
uri="file:\\home\user27\BALITIKURI\reports?delete=true" />
<log message="INWARD DATA : [${body}]" />
<doTry>
<process ref="inwardProcessorCode" />
<doCatch>
<exception>java.io.IOException</exception>
<exception>java.lang.IllegalStateException</exception>
<exception>java.lang.Exception</exception>
</doCatch>
</doTry>
</route>
My requirement is to apply condition on the below XML DSL statement -
<from uri="file:\\home\user27\BALITIKURI\reports?delete=true" />
Is this possible ?
Kindly let me know. As this is urgently required.
Thanks in advance.
Jayanta P.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-XML-DSL-for-File-transfer-to-endpoint-on-Condition-tp5793651.html
Sent from the Camel - Users mailing list archive at Nabble.com.