You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Forum User <te...@gmail.com> on 2012/07/13 18:11:37 UTC

File FTP Dynamic Route

Hi,
I have a question about creating a route that can handle files to be
uploaded to an ftp server dynamically.

The steps i have to go through are:
1. messages come to my queue
2. process the message to determine the file i have to upload and to which
ftp server
3. ftp the file to remote server.

I need help with getting the route
from('activemq:myQueue').process("myprocess to determine the file name and
ftp destination. add those to headers").from("file://" +
header("filePath")).to("ftp://"+header("ftppath"));

Any help is appreciated.
Thanks,
SM