[hornetq-commits] JBoss hornetq SVN: r8920 - trunk/src/main/org/hornetq/ra.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Mar 9 11:14:30 EST 2010
Author: jmesnil
Date: 2010-03-09 11:14:30 -0500 (Tue, 09 Mar 2010)
New Revision: 8920
Modified:
trunk/src/main/org/hornetq/ra/HornetQRAConnectionRequestInfo.java
trunk/src/main/org/hornetq/ra/HornetQRAProperties.java
Log:
add toString() method
Modified: trunk/src/main/org/hornetq/ra/HornetQRAConnectionRequestInfo.java
===================================================================
--- trunk/src/main/org/hornetq/ra/HornetQRAConnectionRequestInfo.java 2010-03-08 16:31:20 UTC (rev 8919)
+++ trunk/src/main/org/hornetq/ra/HornetQRAConnectionRequestInfo.java 2010-03-09 16:14:30 UTC (rev 8920)
@@ -247,7 +247,7 @@
{
if (HornetQRAConnectionRequestInfo.trace)
{
- HornetQRAConnectionRequestInfo.log.trace("isUseXA()");
+ HornetQRAConnectionRequestInfo.log.trace("isUseXA() " + useXA);
}
return useXA;
@@ -261,7 +261,7 @@
{
if (HornetQRAConnectionRequestInfo.trace)
{
- HornetQRAConnectionRequestInfo.log.trace("isTransacted()");
+ HornetQRAConnectionRequestInfo.log.trace("isTransacted() " + transacted);
}
return transacted;
@@ -338,4 +338,12 @@
return hash;
}
+
+ @Override
+ public String toString()
+ {
+ return "HornetQRAConnectionRequestInfo[type=" + type +
+ ", useXA=" + useXA + ", transacted=" + transacted + ", acknowledgeMode=" + acknowledgeMode +
+ ", clientID=" + clientID + ", userName=" + userName + ", password=" + password + "]";
+ }
}
Modified: trunk/src/main/org/hornetq/ra/HornetQRAProperties.java
===================================================================
--- trunk/src/main/org/hornetq/ra/HornetQRAProperties.java 2010-03-08 16:31:20 UTC (rev 8919)
+++ trunk/src/main/org/hornetq/ra/HornetQRAProperties.java 2010-03-09 16:14:30 UTC (rev 8920)
@@ -183,4 +183,11 @@
return useXA != null && useXA;
}
+
+ @Override
+ public String toString()
+ {
+ return "HornetQRAProperties[useXA=" + useXA + ", localTx=" + localTx +
+ ", userName=" + userName + ", password=" + password + "]";
+ }
}
More information about the hornetq-commits
mailing list