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