Author: manik.surtani(a)jboss.com
Date: 2009-01-23 07:12:31 -0500 (Fri, 23 Jan 2009)
New Revision: 7583
Modified:
core/branches/flat/src/main/java/org/horizon/transaction/TransactionTable.java
Log:
Building GlobalTransaction to allow for local mode caches
Modified: core/branches/flat/src/main/java/org/horizon/transaction/TransactionTable.java
===================================================================
---
core/branches/flat/src/main/java/org/horizon/transaction/TransactionTable.java 2009-01-23
11:45:16 UTC (rev 7582)
+++
core/branches/flat/src/main/java/org/horizon/transaction/TransactionTable.java 2009-01-23
12:12:31 UTC (rev 7583)
@@ -293,7 +293,7 @@
//
GlobalTransaction gtx = get(tx);
if (gtx == null && createIfNotExists) {
- Address addr = rpcManager.getAddress();
+ Address addr = getAddress();
gtx = GlobalTransaction.create(addr);
if (trace) log.trace("Creating new GlobalTransaction " + gtx);
TransactionContext transactionContext;
@@ -311,6 +311,10 @@
return gtx;
}
+ private Address getAddress() {
+ return rpcManager == null ? null : rpcManager.getAddress();
+ }
+
public TransactionContext getTransactionContext(GlobalTransaction gtx) {
return gtxMapping.get(gtx);
}
Show replies by date