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橪;password=test橪;stepwise=false橪;delay=2000橪;move=${file:name}.trans橪;recursive=true橪;binary=true橪;filter=#doneFilter橪;maxMessagesPerPoll=3500橪;eagerMaxMessagesPerPoll=false橪;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
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橪;password=test橪;stepwise=false橪;delay=2000橪;move=${file:name}.trans橪;recursive=true橪;binary=true橪;filter=#doneFilter橪;maxMessagesPerPoll=3500橪;eagerMaxMessagesPerPoll=false橪;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