2014-07-23 13:13 GMT+02:00 Gary Tully <[email protected]>:
> 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()


A newbie question

who performs session.commit() ? producer side or consumer side ?
if it's performed by producer side , does consumer send ACK to AMQ
broker ( to acknowledge all messages ) when producer commits it's
session ?

Regards

>
>
> 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

Reply via email to