mirror of https://github.com/apache/activemq.git
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:
parent
22474cd541
commit
b58da3b1be
|
@ -20,6 +20,7 @@ package org.activemq.ra;
|
|||
|
||||
|
||||
import javax.jms.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
|
@ -219,4 +220,13 @@ public class InboundSessionProxy implements Session, QueueSession, TopicSession
|
|||
public TopicPublisher createPublisher(Topic topic) throws JMSException {
|
||||
return getTopicSession().createPublisher(topic);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
try {
|
||||
return "InboundSessionProxy { "+getSession()+" }";
|
||||
} catch (JMSException e) {
|
||||
return "InboundSessionProxy { null }";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -403,4 +403,8 @@ public class ManagedSessionProxy implements Session, QueueSession, TopicSession
|
|||
throw new RuntimeException("Operation not supported.");
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "ManagedSessionProxy { "+session+" }";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue