Hi, I am trying to use camel to get data out of an sftp end point.  At the
moment I have two issues. First, I want to hide the username and password.
 Second I would like to be able to reuse the uri and allow the sftp's
directory to be paramiterized.  Going over the docs online, I don't see a
clear way to do this.  I have found
http://camel.465427.n5.nabble.com/Using-dynamic-parameter-values-in-XML-DSL-Route-td4414073.htmltalk
about using header and recipientList to allows params, but that only
effects the to, is there another way to do this in from (can't use direct
since we won't know the routes till runtime)?

Below is my current XML for this (java code is not using spring):

<routes xmlns="http://camel.apache.org/schema/spring"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd";>

  <route>
    <from
        uri="sftp://
[email protected]/path/to/data?password=password&amp;initialDelay=200&amp;delay=200000&amp;binary=true&amp;idempotent=true&amp;noop=true
"/>
    <setHeader headerName="CamelAwsS3Key">
      <simple>inbox/${in.header.CamelFileName}</simple>
    </setHeader>
    <to
uri="aws-s3://mybucket?amazonS3Client=#amazonS3Client&amp;delay=5000&amp;maxMessagesPerPoll=5"/>

  </route>

</routes>

thanks for your time reading this email

Reply via email to