Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 82423 invoked from network); 30 Oct 2009 14:36:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Oct 2009 14:36:30 -0000 Received: (qmail 81322 invoked by uid 500); 30 Oct 2009 14:36:30 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 81262 invoked by uid 500); 30 Oct 2009 14:36:30 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 81253 invoked by uid 99); 30 Oct 2009 14:36:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 14:36:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 14:36:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 968BC23888D0; Fri, 30 Oct 2009 14:36:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r831315 - in /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp: MessageConsumer.cs Session.cs Date: Fri, 30 Oct 2009 14:36:07 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091030143607.968BC23888D0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Fri Oct 30 14:36:06 2009 New Revision: 831315 URL: http://svn.apache.org/viewvc?rev=831315&view=rev Log: https://issues.apache.org/activemq/browse/AMQNET-202 Client ack operates on the Session not just the source consumer. Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageConsumer.cs activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageConsumer.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageConsumer.cs?rev=831315&r1=831314&r2=831315&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageConsumer.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageConsumer.cs Fri Oct 30 14:36:06 2009 @@ -357,7 +357,7 @@ { this.CheckClosed(); Tracer.Debug("Sending Client Ack:"); - this.Acknowledge(); + this.session.Acknowledge(); } public void Start() Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs?rev=831315&r1=831314&r2=831315&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs Fri Oct 30 14:36:06 2009 @@ -794,7 +794,7 @@ { lock(this.consumers.SyncRoot) { - foreach(MessageConsumer consumer in this.consumers) + foreach(MessageConsumer consumer in this.consumers.Values) { consumer.Acknowledge(); }