Hi Nirosha

If you need to move the files from ftp location to the local directory, you
need to configure the ftp component as consumer endpoint.

Something like

<route>
<from uri="ftp://username@localhost:21/${in.header.
UZVSUBM_SOURCE_DIRECTORY}?password=test"/>
<to uri="file:d:/myLocalDirectory"/>
<route>

In your code, you have used it as producer endpoint.


On Wed, Jan 15, 2014 at 10:43 AM, nirosha27 <nirosha.makk...@wipro.com>wrote:

> Hi Claus,
>
> If I use recipientList it is expecting an Exchange in that ftp
> location....But my requirement is, once i get the source_directory value,
> the file which is already present in that ftp location has to be moved to
> local directory.
>
>
>            <recipientList>
>
>
> <simple>ftp://username@localhost
> :21/${in.header.UZVSUBM_SOURCE_DIRECTORY}?password=test</simple>
>           </recipientList>
>
> Thanks,
> Nirosha
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-Exec-Properties-and-Header-values-in-URI-tp1046744p5745972.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to