Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 80771 invoked from network); 17 Feb 2009 09:40:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2009 09:40:51 -0000 Received: (qmail 94478 invoked by uid 500); 17 Feb 2009 09:40:50 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 94452 invoked by uid 500); 17 Feb 2009 09:40:50 -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 94441 invoked by uid 99); 17 Feb 2009 09:40:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 01:40:50 -0800 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chubrilo@gmail.com designates 209.85.134.184 as permitted sender) Received: from [209.85.134.184] (HELO mu-out-0910.google.com) (209.85.134.184) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 09:40:41 +0000 Received: by mu-out-0910.google.com with SMTP id w8so1169621mue.6 for ; Tue, 17 Feb 2009 01:40:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=yZFR3I4Plv2D9HNjYgddAh4H4/bT2KHo243bMYU4M6Q=; b=u0gM4c7Sr7Xvp4poSUg7nFxjDrCDytvH1gKXnK/JlNf7V+AaRJbefTjfpQ6YO/MzVZ elRdyfIJzDAGMCQENQNn8RB0nc8PCeZ3u9wCSrx2f5XtDDpQ2z5ETcw3KOnoZhRECvPU U6jslq2HqPMN3KG9w+G4pNSJ3gmSKknJ50+TM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=CTeW7gcNZr5twqeQst6RM3g/utm0kCzvdazxKafFpe4l8nn5Cdf/19lEUDJkWoePhJ 9BXGacM7Y4eizypvwZksmpdNF3rtMPldbPg7eb2a1QWDvtGGgy6IU/Q7qWN3h6nSLXl1 ebryDP0KEgBdIlg7XmJ89mNgbTX76vEy90uOg= MIME-Version: 1.0 Sender: chubrilo@gmail.com Received: by 10.103.224.17 with SMTP id b17mr340216mur.61.1234863619748; Tue, 17 Feb 2009 01:40:19 -0800 (PST) In-Reply-To: <22005863.post@talk.nabble.com> References: <21968419.post@talk.nabble.com> <2e6260670902112002j6404542cs6500b98221f31726@mail.gmail.com> <21980374.post@talk.nabble.com> <2e6260670902130744i746f256bu679c3830b65caeef@mail.gmail.com> <22005863.post@talk.nabble.com> Date: Tue, 17 Feb 2009 10:40:19 +0100 X-Google-Sender-Auth: d19c680223f9c5e2 Message-ID: <36e91d9d0902170140q78031642k235238498a26d87@mail.gmail.com> Subject: Re: Messages rollback From: Dejan Bosanac To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001636a7d93f66b32e04631a17d7 X-Virus-Checked: Checked by ClamAV on apache.org --001636a7d93f66b32e04631a17d7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, there have been some fixes in this area (transaction aborting) for the 5.3, so may want to try 5.3-SNAPSHOT and see if it works for you http://people.apache.org/repo/m2-snapshot-repository/org/apache/activemq/apache-activemq/5.3-SNAPSHOT/ I've also documented it a bit (with a working example), so take a look at http://cwiki.apache.org/confluence/display/ACTIVEMQ/How+do+I+unack+the+message+with+Stomp Cheers -- Dejan Bosanac Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Fri, Feb 13, 2009 at 11:12 PM, jzhang1 wrote: > > Thanks very much for AMQ CPP. Our legacy system using the stomp library > from > http://stomp.codehaus.org and write stomp frame to socket directly. > > The impls of commit and abort are "COMMIT" and "ABORT" in the stomp frame > header. > > With regards to "ABORT", the message acknowledge are abort and MQ broker > still keep this message. > We expect on the next call of stomp_read, MQ broker deliver this pending > messages. However it does not unless reconnect and subscribe to the queue. > Is there any header attribute or configuration to let pending messages > redeliver on the next call stomp_read ? > > > > > > > Dave Stanley wrote: > > > > Yes - it looks like there was a bug fixed in the transaction support [1] > > so > > you would need the 2.2 release [2] of the C++ API for the transacted > > session > > capabilities. > > > > [1] http://issues.apache.org/activemq/browse/AMQCPP-174 > > [2] http://activemq.apache.org/cms/activemq-cpp-22-release.html > > > > Regards > > /Dave > > > > On Thu, Feb 12, 2009 at 12:07 PM, jzhang1 wrote: > > > >> > >> Thanks very much for the information. For the C/C++ sender and > receiver, > >> does stomp provide the similar functionality as JMS session ? > >> > >> > >> > >> > >> Dave Stanley wrote: > >> > > >> > You can created a transacted jms session and either commit() or > >> rollback() > >> > that session. See: > >> > > >> > http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTransactionTestSupport.java?view=markup > >> > > >> > Regards > >> > /Dave > >> > > >> > On Wed, Feb 11, 2009 at 8:45 PM, jzhang1 > wrote: > >> > > >> >> > >> >> ActiveMQ guru, > >> >> > >> >> I am curious whether ActiveMQ broker provide backout > >> >> > >> >> all enqueue and dequeue functions calls that have occurred since the > >> last > >> >> syncpoint are to be backed out. Messages put as part of a unit of > work > >> >> are > >> >> deleted; messages retrieved as part of a unit of work are reinstated > >> on > >> >> the > >> >> queue. > >> >> > >> >> Thanks > >> >> > >> >> -- > >> >> View this message in context: > >> >> http://www.nabble.com/Messages-rollback-tp21968419p21968419.html > >> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >> >> > >> >> > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/Messages-rollback-tp21968419p21980374.html > >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Messages-rollback-tp21968419p22005863.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > --001636a7d93f66b32e04631a17d7--