[jboss-cvs] JBossAS SVN: r67954 - branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Dec 5 13:37:18 EST 2007


Author: bdecoste
Date: 2007-12-05 13:37:18 -0500 (Wed, 05 Dec 2007)
New Revision: 67954

Modified:
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/DoNothingBean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/SFSBCacheManipulator.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/SFSBCacheManipulatorMBean.java
Log:
replaced TreeCacheMBean with Cache so the test builds - will test shortly

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/DoNothingBean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/DoNothingBean.java	2007-12-05 18:25:23 UTC (rev 67953)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/DoNothingBean.java	2007-12-05 18:37:18 UTC (rev 67954)
@@ -23,7 +23,7 @@
 
 import javax.ejb.Stateful;
 
-import org.jboss.annotation.ejb.Clustered;
+import org.jboss.ejb3.annotation.Clustered;
 
 /**
  * A meaningless bean, just so we can deploy a clustered SFSB and

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/SFSBCacheManipulator.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/SFSBCacheManipulator.java	2007-12-05 18:25:23 UTC (rev 67953)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/SFSBCacheManipulator.java	2007-12-05 18:37:18 UTC (rev 67954)
@@ -22,9 +22,10 @@
 
 package org.jboss.ejb3.test.ejbthree1136;
 
+import org.jboss.cache.Cache;
 import org.jboss.cache.CacheException;
 import org.jboss.cache.Fqn;
-import org.jboss.cache.TreeCacheMBean;
+import org.jboss.cache.TreeCacheViewMBean;
 import org.jboss.cache.config.Option;
 
 /**
@@ -38,15 +39,15 @@
 {
    public static final String VALUE = "VALUE";
    
-   private TreeCacheMBean clusteredBeanCache;
+   private Cache clusteredBeanCache;
    private String regionRoot;
    
-   public TreeCacheMBean getClusteredBeanCache()
+   public Cache getClusteredBeanCache()
    {
       return clusteredBeanCache;
    }
 
-   public void setClusteredBeanCache(TreeCacheMBean clusteredBeanCache)
+   public void setClusteredBeanCache(Cache clusteredBeanCache)
    {
       this.clusteredBeanCache = clusteredBeanCache;
    }
@@ -72,9 +73,9 @@
       Option opt = new Option();
       opt.setCacheModeLocal(true);
       Fqn fqn = getTestFqn();
-      clusteredBeanCache.put(fqn, "key", VALUE, opt);
+      clusteredBeanCache.put(fqn, "key", opt);
       // "Passivate" the data
-      clusteredBeanCache.evict(fqn);
+      clusteredBeanCache.evict(fqn, true);
    }
    
    public void stop() throws Exception
@@ -89,7 +90,7 @@
       Fqn fqn = getTestFqn();
       Object obj = clusteredBeanCache.get(fqn, "key");
       // "Re-Passivate" the data
-      clusteredBeanCache.evict(fqn);
+      clusteredBeanCache.evict(fqn, true);
       return obj;
    }
 }

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/SFSBCacheManipulatorMBean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/SFSBCacheManipulatorMBean.java	2007-12-05 18:25:23 UTC (rev 67953)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree1136/SFSBCacheManipulatorMBean.java	2007-12-05 18:37:18 UTC (rev 67954)
@@ -22,9 +22,9 @@
 
 package org.jboss.ejb3.test.ejbthree1136;
 
+import org.jboss.cache.Cache;
 import org.jboss.cache.CacheException;
 import org.jboss.cache.Fqn;
-import org.jboss.cache.TreeCacheMBean;
 
 /**
  * MBean that stores a key/value in a cache during start
@@ -35,9 +35,9 @@
  */
 public interface SFSBCacheManipulatorMBean
 {
-   TreeCacheMBean getClusteredBeanCache();
+   Cache getClusteredBeanCache();
 
-   void setClusteredBeanCache(TreeCacheMBean clusteredBeanCache);
+   void setClusteredBeanCache(Cache clusteredBeanCache);
 
    String getRegionRoot();
 




More information about the jboss-cvs-commits mailing list