Hi all,
I'l trying to configure sftp get of a payload file from a remote server if a
trigger file exists. E.g. if on the remote server:
file1.done
file1
if a trigger file "file1.done" exists then get both the trigger file and
payload file. This way the remote machine guarantees that the payload file
is ready for download. The configuration I'm using is:
<?xml version="1.0" encoding="UTF-8"?>
<blueprint
xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
<route>
<from
uri="sftp://user@host2/tmp/?include=.*\.done&delay=6000&delete=true"/>
<log message="Flag file found ${file:name}" />
<to uri="direct:trigger"/>
</route>
<route>
<from uri="direct:trigger"/>
<log message="download ${file:name.noext}"/>
<from
uri="sftp://user@host2/tmp/include=${file:name.noext}&delay=6000&delete=true"/>
<to uri="file:camel/output"/>
</route>
</camelContext>
</blueprint>
Obviously it has a syntax error which is due to "from" in the second route.
Is this supported in camel?
Thanks,
Gabriel
--
View this message in context:
http://camel.465427.n5.nabble.com/SFTP-get-chaining-routes-tp5793620.html
Sent from the Camel - Users mailing list archive at Nabble.com.