Author: manik.surtani(a)jboss.com
Date: 2008-05-12 07:37:20 -0400 (Mon, 12 May 2008)
New Revision: 5827
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/TxInterceptor.java
Log:
Fixed registering of GTX and TE in InvocationContext
Modified: core/trunk/src/main/java/org/jboss/cache/interceptors/TxInterceptor.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/interceptors/TxInterceptor.java 2008-05-12
10:05:55 UTC (rev 5826)
+++ core/trunk/src/main/java/org/jboss/cache/interceptors/TxInterceptor.java 2008-05-12
11:37:20 UTC (rev 5827)
@@ -967,6 +967,11 @@
if (TransactionTable.isValid(tx) && transactions.put(tx, NULL) == null)
{
gtx = txTable.getCurrentTransaction(tx, true);
+ if (ctx.getGlobalTransaction() == null)
+ {
+ ctx.setGlobalTransaction(gtx);
+ ctx.setTransactionEntry(txTable.get(gtx));
+ }
if (gtx.isRemote())
{
// should be no need to register a handler since this a remotely initiated
globalTransaction
Show replies by date