See the javadoc at http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/ConsumerTemplate.html
And take a look at the doneUoW method etc. On Wed, Aug 7, 2013 at 9:47 PM, skumar <sku...@stonewain.com> wrote: > Claus, > I have gone through the section "Timer based polling consumer" at > http://camel.apache.org/polling-consumer.html as I am using a timer in my > route defnition. > I try to follow it but still getting the same error.It seems some thing is > wrong with the endpoint itself > > String > endPointUri="file:{{inbound_home}}/bony?include=.*_BNYM_.*txt&move={{data_home}}/${file:onlyname.noext}_${date:now:yyyyMMdd}.TXT&moveFailed={{data_home}}/errorfile&doneFileName=LOADAVAILBNYM"; > > But this endpoint was working when I was using it in xml route defnition > with from component. > I have just to consume a file from a directory location,read it and shift to > another directory based on availability of a trigger file named > "LOADAVAILBNYM". > So I am not doing any Endpoint inject nor using producer template. > Please give some hint is this a write way to do.I don't have much experience > with camel and I don't think I have very clear grasping of consumer > template. > Thanks > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Unable-to-use-move-movefailed-and-donefilename-with-consumer-template-endpoint-Uri-tp5736913p5736948.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen