camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davsclaus <cib_re...@yahoo.dk>
Subject Re: Using ConsumerTemplate to fetch files.
Date Tue, 14 Dec 2010 15:12:23 GMT

Since you work with the low level Exchange, you need to done it if you want
it to move the files.
exchange.getUnitOfWork().done(exchange);

This is done automatic for you in Camel 2.5 onwards if you use, eg
receiveBody instead

Object body = consumer.redeveiveBody("uri", xxx);
-- 
View this message in context: http://camel.465427.n5.nabble.com/Using-ConsumerTemplate-to-fetch-files-tp3304671p3304723.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message