From b58da3b1bea8242aa94c75dee340e210c6f5be74 Mon Sep 17 00:00:00 2001 From: "Hiram R. Chirino" Date: Wed, 21 Dec 2005 20:48:17 +0000 Subject: [PATCH] Implemented a toString() method git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358375 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/activemq/ra/InboundSessionProxy.java | 10 ++++++++++ .../main/java/org/activemq/ra/ManagedSessionProxy.java | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/activemq-ra/src/main/java/org/activemq/ra/InboundSessionProxy.java b/activemq-ra/src/main/java/org/activemq/ra/InboundSessionProxy.java index e98dd619db..0594e66113 100755 --- a/activemq-ra/src/main/java/org/activemq/ra/InboundSessionProxy.java +++ b/activemq-ra/src/main/java/org/activemq/ra/InboundSessionProxy.java @@ -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 }"; + } + } + } diff --git a/activemq-ra/src/main/java/org/activemq/ra/ManagedSessionProxy.java b/activemq-ra/src/main/java/org/activemq/ra/ManagedSessionProxy.java index d45d2d1b18..85c1f36cbf 100755 --- a/activemq-ra/src/main/java/org/activemq/ra/ManagedSessionProxy.java +++ b/activemq-ra/src/main/java/org/activemq/ra/ManagedSessionProxy.java @@ -403,4 +403,8 @@ public class ManagedSessionProxy implements Session, QueueSession, TopicSession throw new RuntimeException("Operation not supported."); } + public String toString() { + return "ManagedSessionProxy { "+session+" }"; + } + }