activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Burton <bur...@spinn3r.com>
Subject Re: can message.acknowledge be transacted?
Date Thu, 24 Jul 2014 17:56:36 GMT
AH!!! ok.  I couldn't find that documented anywhere.  That's perfect if
that's the case.  I'll write a unit test to verify that this behavior works
with my app.

If so that totally solves my problem.

thanks!


On Thu, Jul 24, 2014 at 3:38 AM, Gary Tully <gary.tully@gmail.com> wrote:

> a transactional session,  is in auto ack mode with the acks pending
> till commit/rollback
> you only need to use message. acknowledge when a session is in client
> ack or individual ack mode.
>
> On 23 July 2014 23:48, Kevin Burton <burton@spinn3r.com> wrote:
> > Ah… so there's no way for me to have acknowledge transactional ?  I need
> > the acknowledge() and sending of all new messages to either complete or
> > fail as a group… hm.
> >
> >
> > On Wed, Jul 23, 2014 at 4:13 AM, Gary Tully <gary.tully@gmail.com>
> wrote:
> >
> >> yes, but not in that way. message.acknowledge(); is not transactional.
> >> You need to manage the operations with a transacted session
> >> that is shared across the producer and consumer.
> >>
> >> consumer.receive();
> >> producer.send() ....
> >> session.commit()
> >>
> >>
> >> On 23 July 2014 06:13, Kevin Burton <burton@spinn3r.com> wrote:
> >> > I have a task processing a message, which creates about a dozen other
> >> > messages and then manually acknowledges the current message it's
> >> processing.
> >> >
> >> > so it's like
> >> >
> >> > producer.send( message0 );
> >> > producer.send( message1 );
> >> > message.acknowledge();
> >> >
> >> > can I put those all in one transaction?
> >> >
> >> > --
> >> >
> >> > Founder/CEO Spinn3r.com
> >> > Location: *San Francisco, CA*
> >> > blog: http://burtonator.wordpress.com
> >> > … or check out my Google+ profile
> >> > <https://plus.google.com/102718274791889610666/posts>
> >> >  <http://spinn3r.com>
> >>
> >>
> >>
> >> --
> >> http://redhat.com
> >> http://blog.garytully.com
> >>
> >
> >
> >
> > --
> >
> > Founder/CEO Spinn3r.com
> > Location: *San Francisco, CA*
> > blog: http://burtonator.wordpress.com
> > … or check out my Google+ profile
> > <https://plus.google.com/102718274791889610666/posts>
> > <http://spinn3r.com>
>
>
>
> --
> http://redhat.com
> http://blog.garytully.com
>



-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile
<https://plus.google.com/102718274791889610666/posts>
<http://spinn3r.com>

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