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{
        final Endpoint<Exchange> endpoint = getContext().getEndpoint(
                        "ftp://t...@127.0.0.1:21/?password=test";);
        final PollingConsumer<Exchange> consumer =
endpoint.createPollingConsumer();
        final Exchange receive = consumer.receive();
}catch(final Exception e1){
            e1.printStackTrace();
}
}

When I shut the ftp server down I still loose data.
What am I doing wrong?
Thanks
Ilker

Claus Ibsen-2 wrote:
> 
> On Mon, May 3, 2010 at 11:30 AM, olamalam <ilker.cikrikc...@aspone.co.uk>
> 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
>> now.
>>
>> I'll also check 13th chapter of camel in action book to see if there is
>> something to do with camel 1.6.1.
>>
> 
> You may want to use a polling consumer instead in 1.x
> http://camel.apache.org/polling-consumer.html
> 
> See the timer based example on that wiki page.
> 
> 
> 
>> Best regards
>> Ilker
>> --
>> View this message in context:
>> http://old.nabble.com/camel-ftp-questions%3A-When-the-FTP-server-is-down-tp28432786p28433090.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
> 
> 

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

Reply via email to