activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: Messages rollback
Date Tue, 17 Feb 2009 09:40:19 GMT
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 <jian.zhang@etrade.com> 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 <jian.zhang@etrade.com> 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 <jian.zhang@etrade.com>
> 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.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message