Re: camel-ftp questions: When the FTP server is down

2010-05-03 Thread olamalam
Hello again, I guess I figured out a problem with my code. I wasn't starting the consumer. Now my code looks like: PollingConsumer consumer = null; try{ final Endpoint endpoint = getContext().getEndpoint( "ftp://t...@127.0.0.1:21/?password=test";); consum

Re: camel-ftp questions: When the FTP server is down

2010-05-03 Thread olamalam
Hi Claus, I've checked the Timer based example but it's implemented with ConsumerTemplate which is not included in Camel 1.x. I've tried to use Polling Consumer but I couldn't manage: @Override public void configure() { from(getJmsQueueName()).to("ftp://t...@127.0.0.1:21/?password=test); try{

Re: camel-ftp questions: When the FTP server is down

2010-05-03 Thread Claus Ibsen
On Mon, May 3, 2010 at 11:30 AM, olamalam wrote: > > Hi Claus, > > I forgot to mention that I'm using 1.6.1 version of camel-core and camel-ftp > which doesn't have routePolicy.  Is there any alternative that I can use > with camel 1.6.1? Because we are not planning to migrate to camel 2.2 right >

Re: camel-ftp questions: When the FTP server is down

2010-05-03 Thread olamalam
Hi Claus, I forgot to mention that I'm using 1.6.1 version of camel-core and camel-ftp which doesn't have routePolicy. Is there any alternative that I can use with camel 1.6.1? Because we are not planning to migrate to camel 2.2 right now. I'll also check 13th chapter of camel in action book to

Re: camel-ftp questions: When the FTP server is down

2010-05-03 Thread Claus Ibsen
Hi On Mon, May 3, 2010 at 10:45 AM, olamalam wrote: > > Hi to all, > > I've written a route which listens to an activemq queue and sends the files > coming from the queue to an FTP server: > from("jms:test.MyQueue").process(processor).to("ftp://t...@127.0.0.1:21/?password=test";); > When I shut