Author: clebert.suconic(a)jboss.com
Date: 2011-04-14 22:35:06 -0400 (Thu, 14 Apr 2011)
New Revision: 10513
Modified:
branches/Branch_2_2_EAP/src/main/org/hornetq/ra/HornetQRAManagedConnection.java
Log:
small optimization
Modified: branches/Branch_2_2_EAP/src/main/org/hornetq/ra/HornetQRAManagedConnection.java
===================================================================
---
branches/Branch_2_2_EAP/src/main/org/hornetq/ra/HornetQRAManagedConnection.java 2011-04-14
21:46:08 UTC (rev 10512)
+++
branches/Branch_2_2_EAP/src/main/org/hornetq/ra/HornetQRAManagedConnection.java 2011-04-15
02:35:06 UTC (rev 10513)
@@ -467,7 +467,7 @@
//
if (xaResource == null)
{
- xaResource = xaSession.getXAResource();
+ xaResource = new HornetQRAXAResource(this, xaSession.getXAResource());
}
if (HornetQRAManagedConnection.trace)
@@ -475,7 +475,6 @@
HornetQRAManagedConnection.log.trace("XAResource=" + xaResource);
}
- xaResource = new HornetQRAXAResource(this, xaResource);
return xaResource;
}