On Fri, Aug 20, 2010 at 4:15 PM, Andreas Asmuss <andreasasm...@gmail.com> wrote:
>
> 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);
>        }
> }

What version of Camel are you using?

I think we have fixed this in one of the last releases.

> --
> 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.
>



-- 
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

Reply via email to