activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spamtrap <nospam.1.friedbad...@spamgourmet.com>
Subject Re: Allowing another consumer to have a message (ActiveMQ-CPP)
Date Tue, 09 Jun 2015 11:59:48 GMT
On Tue, 9 Jun 2015 07:24:24 -0400, Christopher Shannon
<christopher.l.shannon@gmail.com> wrote:

>The use case you are trying to achieve is probably best done by using a
>transaction instead of individual acknowledgements.  If you call rollback
>on the session then the message would be available to be redelivered to
>another consumer.

I don't think I can use a transaction because all messages are
committed at once.  We need to be able to select which messages may be
redelivered and which not, hence the individual acknowledge mode is
used.

Will the rollback work with individual acknowledgements?


>
>On Tue, Jun 9, 2015 at 3:50 AM, spamtrap <
>nospam.1.friedbadger@spamgourmet.com> wrote:
>
>> Hi,
>>
>> In some cases we want to allow another consumer to consumer a message
>> that has already been consumed.   The session is opened using
>> INDIVIDUAL_ACKNOWLEDGE and the message has not been acknowledged.  I
>> have tried closing the session where the message has been consumed but
>> the message is not available to the other consumer.  How can I achieve
>> what I need?
>>
>> TIA.
>>
>>
>>



Mime
View raw message