See the content enricher EIP and the pollEnrich

On Tue, Feb 7, 2017 at 8:38 PM, Gabriel Kapitany <gkapit...@symcor.com> wrote:
> 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&amp;delay=6000&amp;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}&amp;delay=6000&amp;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.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to