activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: can message.acknowledge be transacted?
Date Wed, 23 Jul 2014 11:13:37 GMT
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

Mime
View raw message