activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From HellKnight <>
Subject Re: Individual Acknowledgement seems not working in NMS
Date Mon, 30 Sep 2013 03:48:06 GMT
I create a simple unit test to show my problem in VS2010 , coded in c#.
The idea of my test is as follow :
1. Send some message to the broker by web console.
2. Start a durable subscriber , and receive the test messages.
3. Close the connection of the durable subscriber and start listening again.
    the session is using individual ack mode. Since the individual ack mode
acknowledges each message received individually, I would expect that only
the last message is acked , so after restart the subscriber, the test
messages except the last one should be received again. However, the fact is
every message is acked and 
none test message is received the second time. 
    My unit test compare the number of message received before ack the last
message and after ack the last message. What I am expecting is the second
time I will receive one less message but the fact is I receive 0 message.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message