Re: how to call route from other route?

2011-11-23 Thread Hadrian Zbarcea
Not sure if this was answered. I think you were looking for the enricher pattern. Since you use ftp which uses a poll consumer take a look at pollEnrich [1]. Keep in mind that you can select your file at runtime too, via using a header. Cheers, Hadrian [1]

Re: how to call route from other route?

2011-10-18 Thread Ioannis Canellos
Can you please provide some more details on what you want to do? Typically, routes communicate with each other when they share endpoints. For example: route from uri=jetty:http: to uri=direct:A/ /route route from uri=direct:A to uri=jpa:... /route But I am not sure if this is what you

Re: how to call route from other route?

2011-10-18 Thread Trop
Hi, I want to cause a problem downloading files from FTP on different events such as /quartz:/, /jms:/, /jetty:/. /direct:/ is not suitable, because route from uri=direct:A to uri=ftp://...; /route upload files to ftp. Sorry for my english. Regards trp -- View this message in

Re: how to call route from other route?

2011-10-18 Thread boday
Trop, your example does this already...its just asynchronous because you are using JMS. If you want synchronous behavior, then use direct... Trop wrote: Hello, I have route: route autoStartup=false from uri=ftp://anonymous@localhost/; / to uri=bean:foo / to uri=jms:...

Re: how to call route from other route?

2011-10-18 Thread Gnanaguru S
Hi Trop route autoStartup=false from uri=ftp://anonymous@localhost/; / to uri=bean:foo / /route route autoStartup=false from uri=ftp://anonymous@localhost/; / to uri=jms:... / /route You can use two routes. If you want to do it parallel, Then you can specify

Re: how to call route from other route?

2011-10-18 Thread Trop
Hi Gnanaguru Likely I am incorrectly expressed. I need like this route autoStartup=false from uri=quartz: / to uri=ftp://anonymous@localhost/; / to uri=bean:foo / /route Regards trp -- View this message in context: