activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1483983 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs
Date Fri, 17 May 2013 20:47:15 GMT
Author: tabish
Date: Fri May 17 20:47:14 2013
New Revision: 1483983

URL: http://svn.apache.org/r1483983
Log:
Allow for subclass override to TransactionContext creation. 

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs

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=1483983&r1=1483982&r2=1483983&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 May
17 20:47:14 2013
@@ -72,7 +72,7 @@ namespace Apache.NMS.ActiveMQ
             this.acknowledgementMode = acknowledgementMode;
             this.requestTimeout = connection.RequestTimeout;
             this.dispatchAsync = connection.DispatchAsync;
-            this.transactionContext = new TransactionContext(this);
+            this.transactionContext = CreateTransactionContext();
 			this.exclusive = connection.ExclusiveConsumer;
 			this.retroactive = connection.UseRetroactiveConsumer;
 
@@ -1002,6 +1002,11 @@ namespace Apache.NMS.ActiveMQ
             }
         }
 
+		protected virtual TransactionContext CreateTransactionContext()
+		{
+			return new TransactionContext(this);
+		}
+
         private void CheckClosed()
         {
             if (closed)



Mime
View raw message