Hi I have a route where I call this bean. The consumer gets the file and everything is OK except the file is not deleted. There is also a .camelLock file which is left behind at every run. So isn't the consumer finishing up, or what could be wrong?
public class CustomEnricher { public void enrich(Message m, @XPath("/root/rsp/text()") String path, CamelContext ctx) { ConsumerTemplate consumer = ctx.createConsumerTemplate(); File file = consumer.receiveBody("file:data?delete=true&fileName=" + path, File.class); m.setHeader("newFileName", file.getName()); m.setBody(file); } } -- View this message in context: http://camel.465427.n5.nabble.com/ConsumerTemplate-not-finishing-tp2642233p2642233.html Sent from the Camel - Users mailing list archive at Nabble.com.