activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r358375 - in /incubator/activemq/trunk/activemq-ra/src/main/java/org/activemq/ra: InboundSessionProxy.java ManagedSessionProxy.java
Date Wed, 21 Dec 2005 20:48:21 GMT
Author: chirino
Date: Wed Dec 21 12:48:17 2005
New Revision: 358375

URL: http://svn.apache.org/viewcvs?rev=358375&view=rev
Log:
Implemented a toString() method

Modified:
    incubator/activemq/trunk/activemq-ra/src/main/java/org/activemq/ra/InboundSessionProxy.java
    incubator/activemq/trunk/activemq-ra/src/main/java/org/activemq/ra/ManagedSessionProxy.java

Modified: incubator/activemq/trunk/activemq-ra/src/main/java/org/activemq/ra/InboundSessionProxy.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-ra/src/main/java/org/activemq/ra/InboundSessionProxy.java?rev=358375&r1=358374&r2=358375&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-ra/src/main/java/org/activemq/ra/InboundSessionProxy.java
(original)
+++ incubator/activemq/trunk/activemq-ra/src/main/java/org/activemq/ra/InboundSessionProxy.java
Wed Dec 21 12:48:17 2005
@@ -20,6 +20,7 @@
 
 
 import javax.jms.*;
+
 import java.io.Serializable;
 
 /**
@@ -219,4 +220,13 @@
     public TopicPublisher createPublisher(Topic topic) throws JMSException {
         return getTopicSession().createPublisher(topic);
     }
+    
+    public String toString() {
+        try {
+            return "InboundSessionProxy { "+getSession()+" }";
+        } catch (JMSException e) {
+            return "InboundSessionProxy { null }";
+        }
+    }
+
 }

Modified: incubator/activemq/trunk/activemq-ra/src/main/java/org/activemq/ra/ManagedSessionProxy.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-ra/src/main/java/org/activemq/ra/ManagedSessionProxy.java?rev=358375&r1=358374&r2=358375&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-ra/src/main/java/org/activemq/ra/ManagedSessionProxy.java
(original)
+++ incubator/activemq/trunk/activemq-ra/src/main/java/org/activemq/ra/ManagedSessionProxy.java
Wed Dec 21 12:48:17 2005
@@ -403,4 +403,8 @@
         throw new RuntimeException("Operation not supported.");
     }
 
+    public String toString() {
+        return "ManagedSessionProxy { "+session+" }";
+    }
+
 }



Mime
View raw message