[jboss-cvs] JBossAS SVN: r104962 - in projects/cluster/ha-server-cache-jbc/trunk: src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/jbc and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue May 18 22:16:51 EDT 2010


Author: bstansberry at jboss.com
Date: 2010-05-18 22:16:50 -0400 (Tue, 18 May 2010)
New Revision: 104962

Modified:
   projects/cluster/ha-server-cache-jbc/trunk/pom.xml
   projects/cluster/ha-server-cache-jbc/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/jbc/AbstractJBossCacheService.java
Log:
[JBCLUSTER-270] Avoid invoking on wrapped object

Modified: projects/cluster/ha-server-cache-jbc/trunk/pom.xml
===================================================================
--- projects/cluster/ha-server-cache-jbc/trunk/pom.xml	2010-05-19 02:06:22 UTC (rev 104961)
+++ projects/cluster/ha-server-cache-jbc/trunk/pom.xml	2010-05-19 02:16:50 UTC (rev 104962)
@@ -31,7 +31,7 @@
   
   <properties>
     <version.jboss.ha.server.cache.spi>2.1.0.Final</version.jboss.ha.server.cache.spi>
-    <version.jboss.ha.server.api>1.1.1.GA</version.jboss.ha.server.api>
+    <version.jboss.ha.server.api>1.1.2.Final</version.jboss.ha.server.api>
     <version.jboss.common.core>2.2.12.GA</version.jboss.common.core>
     <version.jboss.logging.spi>2.0.5.GA</version.jboss.logging.spi>
     <version.jboss.cache>3.2.5.GA</version.jboss.cache>

Modified: projects/cluster/ha-server-cache-jbc/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/jbc/AbstractJBossCacheService.java
===================================================================
--- projects/cluster/ha-server-cache-jbc/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/jbc/AbstractJBossCacheService.java	2010-05-19 02:06:22 UTC (rev 104961)
+++ projects/cluster/ha-server-cache-jbc/trunk/src/main/java/org/jboss/web/tomcat/service/session/distributedcache/impl/jbc/AbstractJBossCacheService.java	2010-05-19 02:16:50 UTC (rev 104962)
@@ -47,7 +47,6 @@
 import org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig;
 import org.jboss.cache.pojo.impl.InternalConstant;
 import org.jboss.cache.transaction.BatchModeTransactionManager;
-import org.jboss.ha.framework.interfaces.CachableMarshalledValue;
 import org.jboss.ha.framework.server.MarshalledValueHelper;
 import org.jboss.ha.framework.server.SimpleCachableMarshalledValue;
 import org.jboss.logging.Logger;
@@ -759,8 +758,7 @@
          {
             try
             {
-               CachableMarshalledValue mv = SessionSerializationFactory.createMarshalledValue((Serializable) value);
-               return mv;
+               return new SimpleCachableMarshalledValue((Serializable) value, SessionSerializationFactory.getObjectStreamSource(), true);
             }
             catch (ClassCastException e)
             {




More information about the jboss-cvs-commits mailing list