You need TRANSACTED ack mode for this.
On Tue, Nov 17, 2009 at 7:48 PM, boday <[email protected]> wrote: > > how do I explicitly acknowledge a message in a Camel route (using > CLIENT_ACKNOWLEGE)? > > I'm using Camel2 in SMX 3.3.1. I have a simple Camel route as follows... > > from("activemq:start?maxConcurrentConsumers=10") > .process(new Processor1()) > .process(new Processor2()) > .to("activemq:finished"); > > I'd like to guarantee that a message isn't removed from the start queue > until it has been received by the finished queue (in case of server crash, > etc). I have another > http://old.nabble.com/guaranteed-message-processing-question...-td26202573.html > thread going about this in regards to using transactions, but I'm having > some performance issues and would like to try this instead... > > I know that I need to setup my "activemq" factory's ack mode to > "CLIENT_ACKNOWLEDGE", but then what? Is there an API that I can call at the > end of route to do this... > > from("activemq:start?maxConcurrentConsumers=10") > .process(new Processor1()) > .process(new Processor2()) > .to("activemq:finished") > .acknowledge(); <-------- > > thanks in advance... > > > > > ----- > Ben - Senior Consultant > > -- > View this message in context: > http://old.nabble.com/Camel-route-with-CLIENT_ACKNOWLEDGE--tp26395347p26395347.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
