Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 61938 invoked from network); 11 Feb 2011 15:08:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 15:08:37 -0000 Received: (qmail 33629 invoked by uid 500); 11 Feb 2011 15:08:37 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 33557 invoked by uid 500); 11 Feb 2011 15:08:34 -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 33542 invoked by uid 99); 11 Feb 2011 15:08:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 15:08:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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, 11 Feb 2011 15:08:32 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5CB2123888D2; Fri, 11 Feb 2011 15:08:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1069828 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/QueueBrowser.cs Date: Fri, 11 Feb 2011 15:08:12 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110211150812.5CB2123888D2@eris.apache.org> Author: tabish Date: Fri Feb 11 15:08:12 2011 New Revision: 1069828 URL: http://svn.apache.org/viewvc?rev=1069828&view=rev Log: Allow for operation inside a transacted session. Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/QueueBrowser.cs Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/QueueBrowser.cs URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/QueueBrowser.cs?rev=1069828&r1=1069827&r2=1069828&view=diff ============================================================================== --- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/QueueBrowser.cs (original) +++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/QueueBrowser.cs Fri Feb 11 15:08:12 2011 @@ -127,6 +127,11 @@ namespace Apache.NMS.ActiveMQ try { + if(session.IsTransacted && session.TransactionContext.InLocalTransaction) + { + session.Commit(); + } + consumer.Close(); consumer = null; }