Author: jgomes
Date: Thu Aug 14 09:56:58 2008
New Revision: 685959
URL: http://svn.apache.org/viewvc?rev=685959&view=rev
Log:
Improve checking for temporary queue and temporary topic.
Fixes [AMQNET-45,102]. (See
https://issues.apache.org/activemq/browse/AMQNET-45,102)
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/ActiveMQDestination.cs
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/ActiveMQDestination.cs
URL:
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/ActiveMQDestination.cs?rev=685959&r1=685958&r2=685959&view=diff
==============================================================================
---
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/ActiveMQDestination.cs
(original)
+++
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/ActiveMQDestination.cs
Thu Aug 14 09:56:58 2008
@@ -107,7 +107,9 @@
{
get
{
- return GetDestinationType() == ACTIVEMQ_TOPIC;
+ int destinationType = GetDestinationType();
+ return ACTIVEMQ_TOPIC == destinationType
+ || ACTIVEMQ_TEMPORARY_TOPIC ==
destinationType;
}
}
@@ -115,7 +117,9 @@
{
get
{
- return GetDestinationType() == ACTIVEMQ_QUEUE;
+ int destinationType = GetDestinationType();
+ return ACTIVEMQ_QUEUE == destinationType
+ || ACTIVEMQ_TEMPORARY_QUEUE ==
destinationType;
}
}
@@ -123,8 +127,9 @@
{
get
{
- return GetDestinationType() ==
ACTIVEMQ_TEMPORARY_QUEUE
- || GetDestinationType() ==
ACTIVEMQ_TEMPORARY_TOPIC;
+ int destinationType = GetDestinationType();
+ return ACTIVEMQ_TEMPORARY_QUEUE ==
destinationType
+ || ACTIVEMQ_TEMPORARY_TOPIC ==
destinationType;
}
}