Implemented a toString() method

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358375 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2005-12-21 20:48:17 +00:00
parent 22474cd541
commit b58da3b1be
2 changed files with 14 additions and 0 deletions

View File

@ -20,6 +20,7 @@ package org.activemq.ra;
import javax.jms.*; import javax.jms.*;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -219,4 +220,13 @@ public class InboundSessionProxy implements Session, QueueSession, TopicSession
public TopicPublisher createPublisher(Topic topic) throws JMSException { public TopicPublisher createPublisher(Topic topic) throws JMSException {
return getTopicSession().createPublisher(topic); return getTopicSession().createPublisher(topic);
} }
public String toString() {
try {
return "InboundSessionProxy { "+getSession()+" }";
} catch (JMSException e) {
return "InboundSessionProxy { null }";
}
}
} }

View File

@ -403,4 +403,8 @@ public class ManagedSessionProxy implements Session, QueueSession, TopicSession
throw new RuntimeException("Operation not supported."); throw new RuntimeException("Operation not supported.");
} }
public String toString() {
return "ManagedSessionProxy { "+session+" }";
}
} }