Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-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 D9AB311D09 for ; Mon, 25 Aug 2014 14:23:25 +0000 (UTC) Received: (qmail 23448 invoked by uid 500); 25 Aug 2014 14:23:25 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 23401 invoked by uid 500); 25 Aug 2014 14:23:25 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 23380 invoked by uid 99); 25 Aug 2014 14:23:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2014 14:23:25 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.216.42 as permitted sender) Received: from [209.85.216.42] (HELO mail-qa0-f42.google.com) (209.85.216.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2014 14:22:57 +0000 Received: by mail-qa0-f42.google.com with SMTP id j15so12527563qaq.29 for ; Mon, 25 Aug 2014 07:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=DrcbLZye0iWbI8DHmQVv/CSSyYCN+q+CSNzwCmeSlfo=; b=hxGoU9gVmasUEQwUKsiAx2Ky7XPP3mgiR/OuqeHhd94JH2USWpjUkKe0/7da+nHA+A Tl4aup1UxYYMTCL4u9JSoeDE3x3yFhD4NTRifPqjqIcLw83tfA/1QhOlNpPokEoNhZ0M KfS1wIW1YuY5WsvDrwtN3L2QFsrIyhCJJatP3KkqVXQQNARUMT9JfIxf+EbxDdBZbT2M 1ZK0i9pOdUpO+jYppj1zpeOnDV9g1RGLTAGKwWEEituT3uK5xtB9ZyqnSqEDJb3XmenZ VTVXQWqtivFY2Wm1bRWADuFr61jVSKtZYidHBGIY+y10Dv6ZHv5Pt3IL964sxHFVEYjX Qsjw== X-Received: by 10.140.25.11 with SMTP id 11mr34117669qgs.9.1408976576279; Mon, 25 Aug 2014 07:22:56 -0700 (PDT) Received: from [192.168.2.150] (c-98-218-173-79.hsd1.va.comcast.net. [98.218.173.79]) by mx.google.com with ESMTPSA id l7sm82012761qac.42.2014.08.25.07.22.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Aug 2014 07:22:55 -0700 (PDT) Message-ID: <53FB46BF.9060103@gmail.com> Date: Mon, 25 Aug 2014 10:22:55 -0400 From: Timothy Bish User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: NMS ActiveMQ: transactions involving multiple queues in HA scenario References: <1408974767870-4685008.post@n4.nabble.com> In-Reply-To: <1408974767870-4685008.post@n4.nabble.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 08/25/2014 09:52 AM, biondo wrote: > Hello to everybody, > In my scenario I have a cluster of 4 brokers in a master/slave > configuration. Clients consist of .NET services, therefore i want to use > Apache.NMS.ActiveMQ library to enable my C# application to connect to the > brokers. > > I have a service that acts as consumer of a queue, Q1, and as a producer for > a queue Q2: the service needs to ack a message received from Q1 and publish > multiple messages on Q2. I want to do that in a transactional and reliable > manner, avoiding duplication or loss of messages! > > Are this kind of transactions supported by Apache.NMS.ActiveMQ? > > Overview page says : > "NMS API currently supports all of the features of JMS in a simple pure C# > API and implementation *apart from XA*. Current features include: > ... > *support for transactions* (sending and acknowledging multiple messages in > an atomic transaction) > ..." > Do I need XA support? > When method session.commit returns are all changes available on all slaves? > > Thanks, > Biondo > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/NMS-ActiveMQ-transactions-involving-multiple-queues-in-HA-scenario-tp4685008.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > The NMS.ActiveMQ library supports local transactions meaning you can consume a message and produce additional messages in the context of a single transacted session and then commit the work. The messages you produce are not dispatched from the broker until you commit the local transaction so a rollback from the client will prevent those messages from being dispatched at all. -- Tim Bish Sr Software Engineer | RedHat Inc. tim.bish@redhat.com | www.redhat.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/