Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73A07106AA for ; Fri, 20 Dec 2013 21:54:19 +0000 (UTC) Received: (qmail 76780 invoked by uid 500); 20 Dec 2013 21:54:19 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 76732 invoked by uid 500); 20 Dec 2013 21:54:18 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 76724 invoked by uid 99); 20 Dec 2013 21:54:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Dec 2013 21:54:18 +0000 X-ASF-Spam-Status: No, hits=3.1 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sully6768@gmail.com designates 209.85.223.171 as permitted sender) Received: from [209.85.223.171] (HELO mail-ie0-f171.google.com) (209.85.223.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Dec 2013 21:54:15 +0000 Received: by mail-ie0-f171.google.com with SMTP id ar20so3838935iec.2 for ; Fri, 20 Dec 2013 13:53:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xM5hSWEDbEkkM2UDPnz7vl9YqCuBHOH5yQOcVK157UE=; b=YLLH5mLWocFrEmyCer2uA3INxxrOeYWA/yO3Th80pQTfveSEUF5O7c/MheT82B+4zA Xi/ckL6Kt6UELt0yxQcFeBIW5XTOH33FU00NRPstBSUDmW0P1b+ZuD0Yc5X0nYMTm2uD nVRb0L0v9lZyTZm/rtLbr5SBPNZZ4S5f/gxttb8dNLgPC1dLQMbcE6UqKEsaCjQ8zEKU 5tmdTfjGuitK2ZRBPHesXb0sSPt69fK17Wy74BhS9VRYJrGr3XD6QIkijEjfpCG6UbaI BLHf+K2jgdV/nHMdSbuY6EhEfnFg0W+MiKdfJVN9FWOyd04ZQfPXYYIGTRKgW+WdVO1f Zibw== MIME-Version: 1.0 X-Received: by 10.42.61.147 with SMTP id u19mr7380640ich.36.1387576433820; Fri, 20 Dec 2013 13:53:53 -0800 (PST) Received: by 10.42.117.129 with HTTP; Fri, 20 Dec 2013 13:53:53 -0800 (PST) In-Reply-To: References: <1387296365444-5744954.post@n5.nabble.com> Date: Fri, 20 Dec 2013 15:53:53 -0600 Message-ID: Subject: Re: Acknowledgement to JMS Topic on activemq From: Scott England-Sullivan To: "users@camel.apache.org" Content-Type: multipart/alternative; boundary=20cf302234d56fc74504edfe5011 X-Virus-Checked: Checked by ClamAV on apache.org --20cf302234d56fc74504edfe5011 Content-Type: text/plain; charset=ISO-8859-1 A couple of additional notes: Camel SJMS does have an issue identified with the aggregator and JMS transactions. SJMS is currently closing the transaction, batch included, as the messages pass through the route. It doesn't recognize the fact that an aggregator is participating in the route which is effectively holding copies of the messages. This gap can cause a loss of messages should there be a failure in the aggregator if the batch number has been met. I am going to be looking at this over the break and hopefully come up with a solution. I will be spending my down time over the holidays taking a look at this issue to see if it can be be solved before the introduction of JTA to the Camel project. Best Regards, Scott ES On Wed, Dec 18, 2013 at 2:00 AM, Claus Ibsen wrote: > 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 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: cibsen@redhat.com > 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 > -- -- Scott England-Sullivan Apache Camel Committer Principal Consultant / Sr. Architect | Red Hat, Inc. FuseSource is now part of Red Hat Web: fusesource.com | redhat.com Blog: sully6768.blogspot.com Twitter: sully6768 --20cf302234d56fc74504edfe5011--