[exo-jcr-commits] exo-jcr SVN: r5860 - 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
Tue Mar 13 13:01:39 EDT 2012


Author: nfilotto
Date: 2012-03-13 13:01:38 -0400 (Tue, 13 Mar 2012)
New Revision: 5860

Modified:
   jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/BufferedJBossCache.java
Log:
EXOJCR-1809: The TransactionManager is not properly set in BufferedJBossCache

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-13 12:28:23 UTC (rev 5859)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/BufferedJBossCache.java	2012-03-13 17:01:38 UTC (rev 5860)
@@ -75,15 +75,12 @@
 
    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;
@@ -131,6 +128,7 @@
     */
    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