hello,

I am trying to set up my ftp cleint connection in Spring DSL like:


                <route routePolicyRef="myPolicy" 
id="pcrf-ftp-server-berlin-now-3"
autoStartup="true">
                        <from
                        
uri="ftp://localhost/${bean:timeItervallToDownload?method=getOneDayBeforeYesterday}?username=test&amp;password=test&amp;stepwise=false&amp;delay=2000&amp;move=${file:name}.trans&amp;recursive=true&amp;binary=true&amp;filter=#doneFilter&amp;maxMessagesPerPoll=3500&amp;eagerMaxMessagesPerPoll=false&amp;sorter=#pcrfSorter";
/>
                        <onCompletion>                          
                                <process 
ref="startPcrfFtpBerlinRoute-now-2"></process>                         
                        </onCompletion>
                        <multicast>
                                <to 
uri="file://C:/temp/outputfile/pcrf_files_postpaid" />
                                <log message="Downloaded file ${file:name} 
complete."></log>
                        </multicast>
                </route>


Unfortunatelly without success.  The main issue is in the call of the bean:

${bean:timeItervallToDownload?method=getOneDayBeforeYesterday}


the bean is in the camel context:

<bean id="timeItervallToDownload"
class="com.test.nico.DownloadStrategy"></bean>

what am i doing wrong?

Any help would be much appreciated.

Regards,

Nico




--
View this message in context: 
http://camel.465427.n5.nabble.com/how-to-set-up-ftp-remote-directory-dynamically-tp5749671.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to