On Mon, Aug 22, 2011 at 2:03 PM, aurelienmasse <[email protected]> wrote:
> Hello Claus !
>
> thanks for the quick answer.
>
> I've changed the code to use a consumerTemplate instead of a
> pollingConsumer, so as to use the doneUoW method. So the changed code is :
>
> String uri = buildFullUri(baseUrl, fileName);
>
> ConsumerTemplate template = exchange.getContext().createConsumerTemplate();
> Exchange result = template.receive(uri, DEFAULT_TIMEOUT);
>
> GenericFile body = result.getIn().getBody(GenericFile.class);
> template.doneUoW(exchange);
> template.stop();
>
> Unfortunately, it didn't change the issue, on the second time I poll the
> endpoint, I still got :
> [TRACE] remote.FtpConsumer Skipping as file is already in progress:
> request_1.xml
>
>

What version of Camel are you using?

>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/inProgressRepository-not-cleaned-in-GenericFileEndpoint-tp4722713p4723141.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to