[jboss-cvs] JBossAS SVN: r61678 - in trunk/ejb3: src/test/org/jboss/ejb3/test/clusteredsession and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Mar 25 14:19:35 EDT 2007


Author: bstansberry at jboss.com
Date: 2007-03-25 14:19:35 -0400 (Sun, 25 Mar 2007)
New Revision: 61678

Added:
   trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTester.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterBase.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterStatefulBean.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterStatelessBean.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/ForeignPartitionLocalInterceptorUnitTestCase.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/InvokeLocalTestBase.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/SimpleIsLocalInterceptorUnitTestCase.java
Modified:
   trunk/ejb3/build-test.xml
Log:
[EJBTHREE-881] Test proper local/remote routing of calls

Modified: trunk/ejb3/build-test.xml
===================================================================
--- trunk/ejb3/build-test.xml	2007-03-25 18:16:31 UTC (rev 61677)
+++ trunk/ejb3/build-test.xml	2007-03-25 18:19:35 UTC (rev 61678)
@@ -3114,6 +3114,21 @@
              <include name="META-INF/*.xml"/>
          </fileset>
       </jar>
+
+      <jar jarfile="${build.lib}/clusteredsession-local.jar">
+         <fileset dir="${build.classes}">
+            <include name="org/jboss/ejb3/test/clusteredsession/VMTester*.class"/>
+         </fileset>
+         <fileset dir="${resources}/test/clusteredsession/islocal">
+            <include name="META-INF/*.xml"/>
+         </fileset>
+      </jar>
+	
+	  <copy todir="${build.lib}">
+	     <fileset dir="${resources}/test/clusteredsession/islocal/foreign">
+	        <include name="testlocal-service.xml"/>
+	     </fileset>
+	  </copy>
    </target>
    
    <target name="jars" depends="invalidtxmdb, descriptortypo, libdeployment, homeinterface, timestampentity, arjuna, mdbtransactions, unauthenticatedprincipal, clusteredservice, invoker, classloader, 

Copied: trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTester.java (from rev 61672, branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTester.java)
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTester.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTester.java	2007-03-25 18:19:35 UTC (rev 61678)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.ejb3.test.clusteredsession;
+
+import java.rmi.dgc.VMID;
+
+import javax.naming.NamingException;
+
+/**
+ * Provides access to a static VMID field and ability to
+ * download a remote proxy and check the VMID of its bean.
+ * 
+ * @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
+ * @version $Revision$
+ */
+public interface VMTester
+{
+   public static final VMID VMID = new VMID();
+   
+   VMID getVMID();
+   
+   VMID getVMIDFromRemote(VMTester remote) throws NamingException;
+   
+   VMID getVMIDFromRemoteLookup(String jndiURL, String name) throws NamingException;
+}

Copied: trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterBase.java (from rev 61672, branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterBase.java)
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterBase.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterBase.java	2007-03-25 18:19:35 UTC (rev 61678)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.ejb3.test.clusteredsession;
+
+import java.rmi.dgc.VMID;
+import java.util.Properties;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+import org.jboss.logging.Logger;
+
+/**
+ * @author Brian Stansberry
+ */
+public class VMTesterBase
+{
+   private static final Logger log = Logger.getLogger(VMTesterBase.class);
+   
+   public VMID getVMID()
+   {
+      log.debug("Ignore; just a stack trace", new Exception("Ignore; just a stack trace"));
+      return VMTester.VMID;
+   }
+
+   public VMID getVMIDFromRemoteLookup(String jndiURL, String name)
+   throws NamingException
+   {
+      log.info("Looking up " + jndiURL + "/" + name);
+      Properties env = new Properties();
+      env.setProperty(Context.PROVIDER_URL, jndiURL);
+      env.setProperty("jnp.disableDiscovery", "true");
+      InitialContext ctx = new InitialContext(env);
+      VMTester tester = (VMTester) ctx.lookup(name);
+      return tester.getVMID();
+   }
+   
+   public VMID getVMIDFromRemote(VMTester remote)
+   {
+      return remote.getVMID();
+   }
+
+   
+}

Copied: trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterStatefulBean.java (from rev 61672, branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterStatefulBean.java)
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterStatefulBean.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterStatefulBean.java	2007-03-25 18:19:35 UTC (rev 61678)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.ejb3.test.clusteredsession;
+
+import javax.ejb.Remote;
+import javax.ejb.Stateful;
+
+/**
+ * @author Brian Stansberry
+ */
+ at Stateful
+ at Remote(VMTester.class)
+public class VMTesterStatefulBean extends VMTesterBase implements VMTester
+{
+}

Copied: trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterStatelessBean.java (from rev 61672, branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterStatelessBean.java)
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterStatelessBean.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/VMTesterStatelessBean.java	2007-03-25 18:19:35 UTC (rev 61678)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.ejb3.test.clusteredsession;
+
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+
+/**
+ * @author Brian Stansberry
+ */
+ at Stateless
+ at Remote(VMTester.class)
+public class VMTesterStatelessBean extends VMTesterBase implements VMTester
+{
+}

Copied: trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/ForeignPartitionLocalInterceptorUnitTestCase.java (from rev 61672, branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/ForeignPartitionLocalInterceptorUnitTestCase.java)
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/ForeignPartitionLocalInterceptorUnitTestCase.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/ForeignPartitionLocalInterceptorUnitTestCase.java	2007-03-25 18:19:35 UTC (rev 61678)
@@ -0,0 +1,130 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.ejb3.test.clusteredsession.unit;
+
+import javax.management.ObjectName;
+
+import org.jboss.jmx.adaptor.rmi.RMIAdaptor;
+
+import junit.framework.Test;
+
+/**
+ * @author Brian Stansberry
+ */
+public class ForeignPartitionLocalInterceptorUnitTestCase extends InvokeLocalTestBase
+{
+   private static final String PARTITION_NAME_VALUE = "Ejb3IsLocalTestPartition";
+   
+   private static boolean deployed0 = false;
+   private static boolean deployed1 = false;
+   
+   /**
+    * @param name
+    */
+   public ForeignPartitionLocalInterceptorUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static Test suite() throws Exception
+   {
+      return getDeploySetup(ForeignPartitionLocalInterceptorUnitTestCase.class,
+                           "testlocal-service.xml");
+   }
+
+   @Override
+   protected void setUp() throws Exception
+   {
+      super.setUp();
+      
+      cleanDeployments();
+      
+      deployJars();
+   }
+
+   @Override
+   protected void tearDown() throws Exception
+   {
+      super.tearDown();
+      
+      cleanDeployments();      
+   }
+   
+   @Override
+   protected String getPartitionName()
+   {
+      return PARTITION_NAME_VALUE;
+   }
+   
+   public void testClusteredStatefulGoesRemote() throws Exception
+   {
+      stayLocalTest("ClusteredStatefulRemote", false);
+   }
+   
+   public void testClusteredStatelessGoesRemote() throws Exception
+   {
+      stayLocalTest("ClusteredStatelessRemote", false);      
+   }
+   
+   public void testNonClusteredStatefulGoesRemote() throws Exception
+   {
+      stayLocalTest("NonClusteredStatefulRemote", false);      
+   }
+   
+   public void testNonClusteredStatelessGoesRemote() throws Exception
+   {
+      stayLocalTest("NonClusteredStatelessRemote", false);    
+   }
+
+   private void cleanDeployments() throws Exception
+   {
+      RMIAdaptor[] adaptors = getAdaptors();
+      
+      if (deployed0)
+      {
+         undeploy(adaptors[0], "clusteredsession-local.jar");
+         deployed0 = false;
+      }
+      
+      if (deployed1)
+      {
+         undeploy(adaptors[1], "clusteredsession-local.jar");
+         deployed1 = false;
+      }
+   }
+   
+   private void deployJars() throws Exception
+   {
+      RMIAdaptor[] adaptors = getAdaptors();
+      
+      deploy(adaptors[0], "clusteredsession-local.jar");
+      deployed0 = true;
+      
+      
+      deploy(adaptors[1], "clusteredsession-local.jar");
+      deployed1 = true;      
+   }
+   
+   
+
+}

Copied: trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/InvokeLocalTestBase.java (from rev 61672, branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/InvokeLocalTestBase.java)
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/InvokeLocalTestBase.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/InvokeLocalTestBase.java	2007-03-25 18:19:35 UTC (rev 61678)
@@ -0,0 +1,128 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.ejb3.test.clusteredsession.unit;
+
+import java.rmi.dgc.VMID;
+import java.util.Properties;
+
+import javax.management.ObjectName;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+import org.jboss.ejb3.test.clusteredsession.VMTester;
+import org.jboss.jmx.adaptor.rmi.RMIAdaptor;
+import org.jboss.test.JBossClusteredTestCase;
+
+/**
+ * @author Brian Stansberry
+ */
+public abstract class InvokeLocalTestBase extends JBossClusteredTestCase
+{
+   public static final String TESTER_JNDI_NAME = "NonClusteredStatelessRemote";
+   private static final String PROPERTIES_SERVICE = "jboss:type=Service,name=SystemProperties";
+   private static final String PARTITION_NAME_PROPERTY = "clusteredsession.islocal.partition";
+   
+   
+   public InvokeLocalTestBase(String name)
+   {
+      super(name);
+   }
+
+   
+   @Override
+   protected void setUp() throws Exception
+   {
+      super.setUp();
+      
+      RMIAdaptor[] adaptors = getAdaptors();
+      setPartitionName(adaptors[1]);
+   }
+
+
+   @Override
+   protected void tearDown() throws Exception
+   {
+      super.tearDown();
+      
+      RMIAdaptor[] adaptors = getAdaptors();
+      clearPartitionName(adaptors[1]);
+   }
+
+
+   protected void stayLocalTest(String jndiName, boolean expectLocal)
+      throws Exception
+   {
+      String[] jndiURLs = getNamingURLs();
+      
+      Properties env = new Properties();
+      env.setProperty(Context.PROVIDER_URL, jndiURLs[0]);
+      env.setProperty("jnp.disableDiscovery", "true");
+      InitialContext ctx = new InitialContext(env);
+      VMTester tester = (VMTester) ctx.lookup(TESTER_JNDI_NAME);
+      
+      VMID local = tester.getVMID();
+      assertNotNull("Got the local VMID", local);
+      
+      Properties env1 = new Properties();
+      env1.setProperty(Context.PROVIDER_URL, jndiURLs[1]);
+      env1.setProperty("jnp.disableDiscovery", "true");
+      ctx = new InitialContext(env1);
+      VMTester remote = (VMTester) ctx.lookup(jndiName);
+      
+      // This call instantiates the SFSB if needed
+      VMID remoteID = remote.getVMID();
+      assertNotNull("Got the remote VMID", remoteID);
+      
+      VMID passThroughID = tester.getVMIDFromRemote(remote);
+      assertNotNull("Got the remote VMID", passThroughID);
+      
+      if (expectLocal)
+         assertEquals("Call stayed local", local, passThroughID);
+      else
+         assertFalse("Call went remote", local.equals(passThroughID));
+      
+//      passThroughID = tester.getVMIDFromRemoteLookup(jndiURLs[1], jndiName);
+//      assertNotNull("Got the remote VMID", passThroughID);
+//      
+//      if (expectLocal)
+//         assertEquals("Call stayed local", local, passThroughID);
+//      else
+//         assertFalse("Call went remote", local.equals(passThroughID));
+   }
+   
+   protected abstract String getPartitionName();
+   
+   private void setPartitionName(RMIAdaptor adaptor) throws Exception
+   {
+      Object[] args = { PARTITION_NAME_PROPERTY, getPartitionName() };
+      String[] sig = { String.class.getName(), String.class.getName() };
+      adaptor.invoke(new ObjectName(PROPERTIES_SERVICE), "set", args, sig);
+   }
+   
+   private void clearPartitionName(RMIAdaptor adaptor) throws Exception
+   {
+      Object[] args = { PARTITION_NAME_PROPERTY };
+      String[] sig = { String.class.getName() };
+      adaptor.invoke(new ObjectName(PROPERTIES_SERVICE), "remove", args, sig);
+   }
+}

Copied: trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/SimpleIsLocalInterceptorUnitTestCase.java (from rev 61672, branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/SimpleIsLocalInterceptorUnitTestCase.java)
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/SimpleIsLocalInterceptorUnitTestCase.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/clusteredsession/unit/SimpleIsLocalInterceptorUnitTestCase.java	2007-03-25 18:19:35 UTC (rev 61678)
@@ -0,0 +1,80 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.ejb3.test.clusteredsession.unit;
+
+import java.rmi.dgc.VMID;
+import java.util.Properties;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+import junit.framework.Test;
+
+import org.jboss.ejb3.test.clusteredsession.VMTester;
+import org.jboss.test.JBossClusteredTestCase;
+
+/**
+ * @author Brian Stansberry *
+ */
+public class SimpleIsLocalInterceptorUnitTestCase 
+extends InvokeLocalTestBase
+{
+
+   public SimpleIsLocalInterceptorUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static Test suite() throws Exception
+   {
+      return getDeploySetup(SimpleIsLocalInterceptorUnitTestCase.class,
+                           "clusteredsession-local.jar");
+   }
+   
+   @Override
+   protected String getPartitionName()
+   {
+      return "DefaultPartition";
+   }
+
+   public void testClusteredStatefulStaysLocal() throws Exception
+   {
+      stayLocalTest("ClusteredStatefulRemote" ,true);
+   }
+   
+   public void testClusteredStatelessStaysLocal() throws Exception
+   {
+      stayLocalTest("ClusteredStatelessRemote" ,true);      
+   }
+   
+   public void testNonClusteredStatefulGoesRemote() throws Exception
+   {
+      stayLocalTest("NonClusteredStatefulRemote", false);      
+   }
+   
+   public void testNonClusteredStatelessGoesRemote() throws Exception
+   {
+      stayLocalTest("NonClusteredStatelessRemote", false);    
+   }
+
+}




More information about the jboss-cvs-commits mailing list