Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BDDF310644 for ; Mon, 30 Sep 2013 03:49:20 +0000 (UTC) Received: (qmail 65833 invoked by uid 500); 30 Sep 2013 03:49:17 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 65583 invoked by uid 500); 30 Sep 2013 03:49:16 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 65570 invoked by uid 99); 30 Sep 2013 03:49:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Sep 2013 03:49:14 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of hellknight@foxmail.com does not designate 216.139.250.139 as permitted sender) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Sep 2013 03:49:09 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VQUT8-0004jP-8a for users@activemq.apache.org; Sun, 29 Sep 2013 20:48:22 -0700 Date: Sun, 29 Sep 2013 20:48:06 -0700 (PDT) From: HellKnight To: users@activemq.apache.org Message-ID: <1380512886730-4671963.post@n4.nabble.com> In-Reply-To: <524833A9.9030500@gmail.com> References: <1380459191025-4671953.post@n4.nabble.com> <524833A9.9030500@gmail.com> Subject: Re: Individual Acknowledgement seems not working in NMS MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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: http://activemq.2283324.n4.nabble.com/Individual-Acknowledgement-seems-not-working-in-NMS-tp4671953p4671963.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.