rolled back change of toString() which was made for StompConnect as we can use Queue.getQueueName() / Topic.getTopicName() instead

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@511032 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2007-02-23 17:41:28 +00:00
parent 481e717292
commit b77d70a1b1
1 changed files with 13 additions and 15 deletions

View File

@ -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.net.URISyntaxException;
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 @@ abstract public class ActiveMQDestination extends JNDIBaseStorable implements Da
}
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 {