activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1530371 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs
Date Tue, 08 Oct 2013 17:54:48 GMT
Author: tabish
Date: Tue Oct  8 17:54:47 2013
New Revision: 1530371

URL: http://svn.apache.org/r1530371
Log:
https://issues.apache.org/jira/browse/AMQNET-447

Throw an exception the user attempts to create a Durable Subscription that uses individual
ack. 

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=1530371&r1=1530370&r2=1530371&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 Tue Oct
 8 17:54:47 2013
@@ -526,6 +526,12 @@ namespace Apache.NMS.ActiveMQ
                 throw new InvalidDestinationException("Cannot create a Consumer with a Null
destination");
             }
 
+			if (IsIndividualAcknowledge)
+			{
+				throw new NMSException("Cannot create a durable consumer for a session that is using
" +
+				                       "Individual Acknowledgement mode.");
+			}
+
             ActiveMQDestination dest = ActiveMQDestination.Transform(destination);
             MessageConsumer consumer = null;
 



Mime
View raw message