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 816E810257 for ; Wed, 4 Dec 2013 14:23:06 +0000 (UTC) Received: (qmail 80600 invoked by uid 500); 4 Dec 2013 14:22:37 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 80537 invoked by uid 500); 4 Dec 2013 14:22:29 -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 80474 invoked by uid 99); 4 Dec 2013 14:22:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2013 14:22:23 +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 (athena.apache.org: domain of tabish121@gmail.com designates 209.85.128.48 as permitted sender) Received: from [209.85.128.48] (HELO mail-qe0-f48.google.com) (209.85.128.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2013 14:22:18 +0000 Received: by mail-qe0-f48.google.com with SMTP id gc15so16132254qeb.7 for ; Wed, 04 Dec 2013 06:21:57 -0800 (PST) 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=fVSA+uE53WutOdVr1EpAOwVDPNfP6e5puBdcJi/iISU=; b=VjINcZPezwQ7Spp8d0B1vgn1H+YAOMfZPgefZ0XZpChOVlQb3sP8IidcWXyvK3aM/x 2VZdOHo6nWNbrfsOpcnhTZw5/21suK31ZfwIZ/n3uLJ1TahESLxIZVDnh8riWoX5QKov NSed2umGPwbpvs94ntn/KmhKdwxFfQsM9xUYdalPFb7bR2EFP+w8A3ncGixwC4A4tBgg 65usd5S5T7HF3V4Hfao/PCbXARs+BE8um7L8LxFcR/ustIX/WOVzkINUYsne6U2OOw0L 0AgwSwPCahp2U/SjWqZ9tF/fC1LXjEhWVHI4V9RetpMVWtcoaOkec/flR9lQi5gX5dzr n40Q== X-Received: by 10.224.51.7 with SMTP id b7mr5650745qag.74.1386166917755; Wed, 04 Dec 2013 06:21:57 -0800 (PST) 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 r5sm233324014qaj.13.2013.12.04.06.21.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Dec 2013 06:21:57 -0800 (PST) Message-ID: <529F3A84.6050909@gmail.com> Date: Wed, 04 Dec 2013 09:21:56 -0500 From: Timothy Bish User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: Transactions in Stomp References: <1386145826355-4675080.post@n4.nabble.com> <1386146984156-4675082.post@n4.nabble.com> In-Reply-To: <1386146984156-4675082.post@n4.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 12/04/2013 03:49 AM, Sophia Wright wrote: > In addition to the last question.. > > As specified on the page > http://activemq.apache.org/how-do-i-unack-the-message-with-stomp.html > > ---------How to receive the message in transactions using > CLIENT_ACK-------------------- > connection.begin("tx3"); > frame = connection.receive(); > System.out.println(frame.getBody()); > connection.ack(frame, "tx3"); > connection.commit("tx3"); > ------------------------------------------------------- > > In the above source code, > 1) What is the internal ActiveMQ processing of message between > connection.ack() and connection.commit() ? > 2) Can I use receive more then one messages(receive---ack--receive--ack....) > in one transaction and then commit it once ? > > > > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Transactions-in-Stomp-tp4675080p4675082.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > You can receive without acking but at some point you will hit the prefetch limit, depending on what you configure it as, so you would need to start acking messages if you intend to consume a large batch inside a single transaction. -- Tim Bish Sr Software Engineer | RedHat Inc. tim.bish@redhat.com | www.fusesource.com | www.redhat.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/