Hi

On Mon, May 3, 2010 at 10:45 AM, olamalam <ilker.cikrikc...@aspone.co.uk> 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 the server down and put some files to queue and immediately
> start the server again I can receive the files without the problem. But If I
> wait for some time to start the server again I'm loosing the files.
> Is there a way to configure this waiting time? Because I don't want my files
> to send to dead letter queue and lost.
> If not, how can I handle this case, when the server is down?
>

A good idea would be to suspend the route while the FTP server is down.

For example you can use route policy to dictate this
http://camel.apache.org/routepolicy.html


Also chapter 13 in Camel in Action book talks about dynamic
starting/stopping routes at runtime.


> Thanks in advance
> Ilker
> --
> View this message in context: 
> http://old.nabble.com/camel-ftp-questions%3A-When-the-FTP-server-is-down-tp28432786p28432786.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to