Can't find anything along those lines. I tried doing while(true) { Exchange ex = consumer.receive(ftpsUri, 5000); if(ex != null) { logger.info("Fetching file: " + ex.getIn().getHeader("CamelFileName")); producer.send(fileUri, ex); ex.getUnitOfWork().done(ex); } else if (ex == null) { consumer.stop(); break; } }
But this just throws nullpointer, I suppose the exchange doesn't have a unit of work. -- View this message in context: http://camel.465427.n5.nabble.com/Using-ConsumerTemplate-to-fetch-files-tp3304671p3304768.html Sent from the Camel - Users mailing list archive at Nabble.com.