[jboss-cvs] JBossAS SVN: r68164 - trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 11 19:14:59 EST 2007


Author: bstansberry at jboss.com
Date: 2007-12-11 19:14:58 -0500 (Tue, 11 Dec 2007)
New Revision: 68164

Modified:
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/SFSBCacheManipulator.java
Log:
[EJBTHREE-1136] Use the correct JBC 2.x API in trunk test

Modified: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/SFSBCacheManipulator.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/SFSBCacheManipulator.java	2007-12-12 00:04:23 UTC (rev 68163)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/SFSBCacheManipulator.java	2007-12-12 00:14:58 UTC (rev 68164)
@@ -25,8 +25,6 @@
 import org.jboss.cache.Cache;
 import org.jboss.cache.CacheException;
 import org.jboss.cache.Fqn;
-import org.jboss.cache.TreeCacheViewMBean;
-import org.jboss.cache.config.Option;
 
 /**
  * MBean that stores a key/value in a cache during start
@@ -70,19 +68,17 @@
 
    public void start() throws Exception
    {
-      Option opt = new Option();
-      opt.setCacheModeLocal(true);
       Fqn fqn = getTestFqn();
-      clusteredBeanCache.put(fqn, "key", opt);
+      clusteredBeanCache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
+      clusteredBeanCache.put(fqn, "key", VALUE);
       // "Passivate" the data
       clusteredBeanCache.evict(fqn, true);
    }
    
    public void stop() throws Exception
    {
-      Option opt = new Option();
-      opt.setCacheModeLocal(true);
-      clusteredBeanCache.remove(getTestFqn(), opt);
+      clusteredBeanCache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
+      clusteredBeanCache.removeNode(getTestFqn());
    }
    
    public Object getFromBeanCache() throws CacheException




More information about the jboss-cvs-commits mailing list