[exo-jcr-commits] exo-jcr SVN: r5869 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Mar 15 08:32:16 EDT 2012


Author: tolusha
Date: 2012-03-15 08:32:14 -0400 (Thu, 15 Mar 2012)
New Revision: 5869

Modified:
   jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/BufferedJBossCache.java
Log:
EXOJCR-1809: revert changes

Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/BufferedJBossCache.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/BufferedJBossCache.java	2012-03-15 10:48:05 UTC (rev 5868)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/BufferedJBossCache.java	2012-03-15 12:32:14 UTC (rev 5869)
@@ -75,12 +75,15 @@
 
    private final long expirationTimeOut;
 
+   private final TransactionManager tm;
+
    protected static final Log LOG =
       ExoLogger.getLogger("org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.BufferedJBossCache");
 
    public BufferedJBossCache(Cache<Serializable, Object> parentCache, boolean useExpiration, long expirationTimeOut)
    {
       super();
+      this.tm = ((CacheSPI<Serializable, Object>)parentCache).getTransactionManager();
       this.parentCache = parentCache;
       this.useExpiration = useExpiration;
       this.expirationTimeOut = expirationTimeOut;
@@ -128,7 +131,6 @@
     */
    private void commitChanges(List<ChangesContainer> containers)
    {
-      TransactionManager tm = getTransactionManager();
       for (ChangesContainer cacheChange : containers)
       {
          boolean isTxCreated = false;



More information about the exo-jcr-commits mailing list