activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r511032 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQDestination.java
Date Fri, 23 Feb 2007 17:41:29 GMT
Author: jstrachan
Date: Fri Feb 23 09:41:28 2007
New Revision: 511032

URL: http://svn.apache.org/viewvc?view=rev&rev=511032
Log:
rolled back change of toString() which was made for StompConnect as we can use Queue.getQueueName()
/ Topic.getTopicName() instead

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQDestination.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQDestination.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQDestination.java?view=diff&rev=511032&r1=511031&r2=511032
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQDestination.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQDestination.java
Fri Feb 23 09:41:28 2007
@@ -17,6 +17,16 @@
  */
 package org.apache.activemq.command;
 
+import org.apache.activemq.jndi.JNDIBaseStorable;
+import org.apache.activemq.util.IntrospectionSupport;
+import org.apache.activemq.util.URISupport;
+
+import javax.jms.Destination;
+import javax.jms.JMSException;
+import javax.jms.Queue;
+import javax.jms.TemporaryQueue;
+import javax.jms.TemporaryTopic;
+import javax.jms.Topic;
 import java.io.Externalizable;
 import java.io.IOException;
 import java.io.ObjectInput;
@@ -25,19 +35,8 @@
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.Map;
-import java.util.StringTokenizer;
 import java.util.Properties;
-
-import javax.jms.Destination;
-import javax.jms.JMSException;
-import javax.jms.Queue;
-import javax.jms.TemporaryQueue;
-import javax.jms.TemporaryTopic;
-import javax.jms.Topic;
-
-import org.apache.activemq.util.URISupport;
-import org.apache.activemq.util.IntrospectionSupport;
-import org.apache.activemq.jndi.JNDIBaseStorable;
+import java.util.StringTokenizer;
 
 /**
  * @openwire:marshaller
@@ -297,10 +296,9 @@
         }
         return hashValue;
     }
+    
     public String toString() {
-        // TODO we should use the physical name by default for easier operation
-        // with other software like StompConnect
-        return physicalName;
+        return getQualifiedName();
     }
     
     public void writeExternal(ObjectOutput out) throws IOException {



Mime
View raw message