look at http://camel.apache.org/sjms.html component. The SJMS component
supports transacted routes which is what you want here. But you will need a
durable subscriber to the topic to make it work.

*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
<http://www.linkedin.com/pub/robert-simmons/40/852/a39>*


On Tue, Dec 17, 2013 at 10:06 AM, 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.
>

Reply via email to