activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spamtrap <>
Subject Re: Allowing another consumer to have a message (ActiveMQ-CPP)
Date Fri, 12 Jun 2015 13:19:41 GMT
On Fri, 12 Jun 2015 06:56:42 -0600, Tim Bain
<> wrote:

I was calling session.start() after calling session.stop().

If I change it to deleting and re-creating a session object the
message still disappears, but this time when I re-create the consumer
object (i.e. not when the session starts).

>Does restarting the session mean creating a new session object, or calling
>start() on the current one after calling stop()?  Is the behavior the same
>if you do it the other way?
>On Jun 12, 2015 4:30 AM, "spamtrap" <>
>> On Thu, 11 Jun 2015 14:01:16 -0600, Tim Bain
>> <> wrote:
>> >Confirm that step by step.  Are the messages still on the broker when the
>> >transaction rolls back?  Are they still on the broker when the client
>> >disconnects?  Wherever you lose them, the previous step is the one to
>> >investigate.
>> I've now done this.  The message is still there when the transaction
>> rolls and and the broker disconnects.  It is still there when the
>> client disconnects.  It is still there when I create a new consumer.
>> It 'disappears' when I restart the session.  In the broker log I can
>> see an Acknowledgement at this time, but it wasn't done by me.

View raw message