Hello again, I guess I figured out a problem with my code. I wasn't starting the consumer. Now my code looks like:
PollingConsumer<Exchange> consumer = null; try{ final Endpoint<Exchange> endpoint = getContext().getEndpoint( "ftp://t...@127.0.0.1:21/?password=test"); consumer = endpoint.createPollingConsumer(); consumer.start(); while(true){ final Exchange receive = consumer.receive(); } }catch(final Exception e1){ e1.printStackTrace(); }finally{ try{ consumer.stop(); }catch(final Exception e){ // TODO: handle exception } } producer.send(getJmsQueueName(), processor); This code works when the server is up but not working when the server is down. I think I'm still missing something. Best regards. Ilker -- View this message in context: http://old.nabble.com/camel-ftp-questions%3A-When-the-FTP-server-is-down-tp28432786p28436779.html Sent from the Camel - Users mailing list archive at Nabble.com.