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 <[email protected]> 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
