camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: ConsumerTemplate not finishing?
Date Fri, 20 Aug 2010 14:23:49 GMT
On Fri, Aug 20, 2010 at 4:15 PM, Andreas Asmuss <andreasasmuss@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

Mime
View raw message