You can use transacted acknowledge mode with the camel-jms component. Just set transacted=true, and setup the TX stuff. http://camel.apache.org/jms http://camel.apache.org/transactional-client.html
Mind that camel-jms only supports one message at a time, eg consume one message in a TX. The other camel-sjms has some support for batch consuming, but this component is not as hardened as the camel-jms one. On Tue, Dec 17, 2013 at 5:06 PM, Sri <[email protected]> wrote: > Hi All, > > I am consuming message from a topic and wanted send it to SOLR server as a > batch for a commit as committing on SOLR is expensive operation. How ever I > wanted to keep the message on the topic till the commit operation completes > successfully. I want to send successful acknowledgement in that case > otherwise no acknowledgement. > > I am using aggregator for batching the messages how ever I couldn't get any > hold acknowledgement. Aggregator sends successful acknowledgement as soon as > it reads from the topic. > > I do not want to loose any messages if by any chance SOLR doesn't commit > successfully. > > Your help will be much appreciated. > > Thanks > Sri > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Acknowledgement-to-JMS-Topic-on-activemq-tp5744954.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io
