Author: tabish
Date: Tue Oct 8 17:56:25 2013
New Revision: 1530372
URL: http://svn.apache.org/r1530372
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/branches/1.6.x/src/main/csharp/Session.cs
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.6.x/src/main/csharp/Session.cs
URL:
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.6.x/src/main/csharp/Session.cs?rev=1530372&r1=1530371&r2=1530372&view=diff
==============================================================================
---
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.6.x/src/main/csharp/Session.cs
(original)
+++
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.6.x/src/main/csharp/Session.cs
Tue Oct 8 17:56:25 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;