[jboss-cvs] JBossAS SVN: r61034 - in branches/Branch_4_2/ejb3/src: resources/test and 14 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Mar 1 18:55:24 EST 2007


Author: bdecoste
Date: 2007-03-01 18:55:24 -0500 (Thu, 01 Mar 2007)
New Revision: 61034

Added:
   branches/Branch_4_2/ejb3/src/resources/test/homeinterface/
   branches/Branch_4_2/ejb3/src/resources/test/homeinterface/META-INF/
   branches/Branch_4_2/ejb3/src/resources/test/homeinterface/META-INF/jboss.xml
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DefaultStatefulBean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DefaultStatelessBean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DescriptorStatefulBean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DescriptorStatelessBean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/ExplicitStatefulBean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/ExplicitStatelessBean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/Home.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/LocalHome.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/LocalInterface.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/RemoteInterface.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/Test.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/TestBean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/unit/
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/unit/HomeTestCase.java
Modified:
   branches/Branch_4_2/ejb3/src/resources/schema/jboss_5_0.xsd
   branches/Branch_4_2/ejb3/src/resources/test/reference21_30/META-INF/jboss-reference.xml
   branches/Branch_4_2/ejb3/src/resources/test/reference21_30/META-INF/jboss-reference2.xml
   branches/Branch_4_2/ejb3/src/resources/test/reference21_30/META-INF/jboss2.xml
   branches/Branch_4_2/ejb3/src/resources/test/servlet/WEB-INF/jboss-web.xml
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/iiop/unit/IiopRemoteUnitTestCase.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/GlobalSession30Bean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/HomedStatefulSession30Bean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/Session21Bean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/Session30Bean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/StatefulSession30Bean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/Test3Bean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/EarTestCase.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/GlobalReferenceTestCase.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/MultiDeployTestCase.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/ReferenceTestCase.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/regression/ejbthree653/unit/PoolingSLBSTestCase.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/regression/ejbthree670/unit/PreDestroyCallsTestCase.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/servlet/servlets/EJBServlet.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/MetricsUnitTestCase.java
Log:
fix and tests for new home jndi binding default and annotations

Modified: branches/Branch_4_2/ejb3/src/resources/schema/jboss_5_0.xsd
===================================================================
(Binary files differ)

Added: branches/Branch_4_2/ejb3/src/resources/test/homeinterface/META-INF/jboss.xml
===================================================================
--- branches/Branch_4_2/ejb3/src/resources/test/homeinterface/META-INF/jboss.xml	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/resources/test/homeinterface/META-INF/jboss.xml	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,21 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<jboss
+        xmlns="http://java.sun.com/xml/ns/javaee"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+                            http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
+        version="3.0">
+	<enterprise-beans>
+		<session>
+			<ejb-name>DescriptorStatelessBean</ejb-name>
+			<home-jndi-name>DescriptorStatelessHome</home-jndi-name>
+			<local-home-jndi-name>DescriptorStatelessLocalHome</local-home-jndi-name>
+		</session>
+		<session>
+			<ejb-name>DescriptorStatefulBean</ejb-name>
+			<home-jndi-name>DescriptorStatefulHome</home-jndi-name>
+			<local-home-jndi-name>DescriptorStatefulLocalHome</local-home-jndi-name>
+		</session>
+	</enterprise-beans>
+</jboss>
+

Modified: branches/Branch_4_2/ejb3/src/resources/test/reference21_30/META-INF/jboss-reference.xml
===================================================================
--- branches/Branch_4_2/ejb3/src/resources/test/reference21_30/META-INF/jboss-reference.xml	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/resources/test/reference21_30/META-INF/jboss-reference.xml	2007-03-01 23:55:24 UTC (rev 61034)
@@ -8,7 +8,7 @@
    <enterprise-beans>
       <session>
          <ejb-name>Session21</ejb-name>
-         <jndi-name>Session21</jndi-name>
+         <jndi-name>Session21Remote</jndi-name>
       </session>
    </enterprise-beans>
 </jboss>

Modified: branches/Branch_4_2/ejb3/src/resources/test/reference21_30/META-INF/jboss-reference2.xml
===================================================================
--- branches/Branch_4_2/ejb3/src/resources/test/reference21_30/META-INF/jboss-reference2.xml	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/resources/test/reference21_30/META-INF/jboss-reference2.xml	2007-03-01 23:55:24 UTC (rev 61034)
@@ -8,7 +8,7 @@
    <enterprise-beans>
       <session>
          <ejb-name>Session21</ejb-name>
-         <jndi-name>Session21</jndi-name>
+         <jndi-name>Session21Remote</jndi-name>
       </session>
       <session>
          <ejb-name>Session30</ejb-name>

Modified: branches/Branch_4_2/ejb3/src/resources/test/reference21_30/META-INF/jboss2.xml
===================================================================
--- branches/Branch_4_2/ejb3/src/resources/test/reference21_30/META-INF/jboss2.xml	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/resources/test/reference21_30/META-INF/jboss2.xml	2007-03-01 23:55:24 UTC (rev 61034)
@@ -7,11 +7,11 @@
          <jndi-name>Test2</jndi-name>
          <ejb-ref>
 		    <ejb-ref-name>ejb/Test3Home</ejb-ref-name>
-		    <jndi-name>Test3Home</jndi-name>
+		    <jndi-name>Test3/home</jndi-name>
 		 </ejb-ref>
          <ejb-ref>
             <ejb-ref-name>ejb/Test3</ejb-ref-name>
-            <jndi-name>Test3</jndi-name>
+            <jndi-name>Test3Remote</jndi-name>
          </ejb-ref>
       </session>
    </enterprise-beans>

Modified: branches/Branch_4_2/ejb3/src/resources/test/servlet/WEB-INF/jboss-web.xml
===================================================================
--- branches/Branch_4_2/ejb3/src/resources/test/servlet/WEB-INF/jboss-web.xml	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/resources/test/servlet/WEB-INF/jboss-web.xml	2007-03-01 23:55:24 UTC (rev 61034)
@@ -18,12 +18,12 @@
    
    <ejb-ref>
       <ejb-ref-name>ejb/remote/Session30</ejb-ref-name>
-      <jndi-name>ejb/Session30Home</jndi-name>
+      <jndi-name>Session30/home</jndi-name>
    </ejb-ref>
    
    <ejb-local-ref>
       <ejb-ref-name>ejb/local/Session30</ejb-ref-name>
-      <local-jndi-name>ejb/Session30LocalHome</local-jndi-name>
+      <local-jndi-name>Session30/localHome</local-jndi-name>
    </ejb-local-ref>
 </jboss-web>
 

Added: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DefaultStatefulBean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DefaultStatefulBean.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DefaultStatefulBean.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,51 @@
+/*
+ * 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.homeinterface;
+
+import javax.ejb.Local;
+import javax.ejb.LocalHome;
+import javax.ejb.Remote;
+import javax.ejb.RemoteHome;
+import javax.ejb.Stateful;
+
+import org.jboss.logging.Logger;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+ at Stateful
+ at Remote(RemoteInterface.class)
+ at RemoteHome(Home.class)
+ at Local(LocalInterface.class)
+ at LocalHome(org.jboss.ejb3.test.homeinterface.LocalHome.class)
+public class DefaultStatefulBean implements RemoteInterface, LocalInterface
+{
+   private static final Logger log = Logger.getLogger(DefaultStatefulBean.class);
+    
+   public void test() 
+   {
+   }
+   
+   public void testLocal() 
+   {
+   }
+}

Added: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DefaultStatelessBean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DefaultStatelessBean.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DefaultStatelessBean.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,51 @@
+/*
+ * 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.homeinterface;
+
+import javax.ejb.Local;
+import javax.ejb.LocalHome;
+import javax.ejb.Remote;
+import javax.ejb.RemoteHome;
+import javax.ejb.Stateless;
+
+import org.jboss.logging.Logger;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+ at Stateless
+ at Remote(RemoteInterface.class)
+ at RemoteHome(Home.class)
+ at Local(LocalInterface.class)
+ at LocalHome(org.jboss.ejb3.test.homeinterface.LocalHome.class)
+public class DefaultStatelessBean implements RemoteInterface, LocalInterface
+{
+   private static final Logger log = Logger.getLogger(DefaultStatelessBean.class);
+    
+   public void test() 
+   {
+   }
+   
+   public void testLocal() 
+   {
+   }
+}

Added: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DescriptorStatefulBean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DescriptorStatefulBean.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DescriptorStatefulBean.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,51 @@
+/*
+ * 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.homeinterface;
+
+import javax.ejb.Local;
+import javax.ejb.LocalHome;
+import javax.ejb.Remote;
+import javax.ejb.RemoteHome;
+import javax.ejb.Stateful;
+
+import org.jboss.logging.Logger;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+ at Stateful
+ at Remote(RemoteInterface.class)
+ at RemoteHome(Home.class)
+ at Local(LocalInterface.class)
+ at LocalHome(org.jboss.ejb3.test.homeinterface.LocalHome.class)
+public class DescriptorStatefulBean implements RemoteInterface, LocalInterface
+{
+   private static final Logger log = Logger.getLogger(DescriptorStatefulBean.class);
+    
+   public void test() 
+   {
+   }
+   
+   public void testLocal() 
+   {
+   }
+}

Added: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DescriptorStatelessBean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DescriptorStatelessBean.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/DescriptorStatelessBean.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,51 @@
+/*
+ * 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.homeinterface;
+
+import javax.ejb.Local;
+import javax.ejb.LocalHome;
+import javax.ejb.Remote;
+import javax.ejb.RemoteHome;
+import javax.ejb.Stateless;
+
+import org.jboss.logging.Logger;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+ at Stateless
+ at Remote(RemoteInterface.class)
+ at RemoteHome(Home.class)
+ at Local(LocalInterface.class)
+ at LocalHome(org.jboss.ejb3.test.homeinterface.LocalHome.class)
+public class DescriptorStatelessBean implements RemoteInterface, LocalInterface
+{
+   private static final Logger log = Logger.getLogger(DescriptorStatelessBean.class);
+    
+   public void test() 
+   {
+   }
+   
+   public void testLocal() 
+   {
+   }
+}

Added: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/ExplicitStatefulBean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/ExplicitStatefulBean.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/ExplicitStatefulBean.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,60 @@
+/*
+ * 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.homeinterface;
+
+import javax.ejb.Local;
+import javax.ejb.LocalHome;
+import javax.ejb.Remote;
+import javax.ejb.RemoteHome;
+import javax.ejb.Stateful;
+
+import org.jboss.annotation.ejb.LocalHomeBinding;
+import org.jboss.annotation.ejb.RemoteHomeBinding;
+import org.jboss.annotation.ejb.LocalBinding;
+import org.jboss.annotation.ejb.RemoteBinding;
+
+import org.jboss.logging.Logger;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+ at Stateful
+ at Remote(RemoteInterface.class)
+ at RemoteBinding(jndiBinding="ExplicitStatefulRemote")
+ at RemoteHomeBinding(jndiBinding="ExplicitStatefulHome")
+ at RemoteHome(Home.class)
+ at Local(LocalInterface.class)
+ at LocalBinding(jndiBinding="ExplicitStatefulLocal")
+ at LocalHomeBinding(jndiBinding="ExplicitStatefulLocalHome")
+ at LocalHome(org.jboss.ejb3.test.homeinterface.LocalHome.class)
+public class ExplicitStatefulBean implements RemoteInterface, LocalInterface
+{
+   private static final Logger log = Logger.getLogger(ExplicitStatefulBean.class);
+    
+   public void test() 
+   {
+   }
+   
+   public void testLocal() 
+   {
+   }
+}

Added: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/ExplicitStatelessBean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/ExplicitStatelessBean.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/ExplicitStatelessBean.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,60 @@
+/*
+ * 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.homeinterface;
+
+import javax.ejb.Local;
+import javax.ejb.LocalHome;
+import javax.ejb.Remote;
+import javax.ejb.RemoteHome;
+import javax.ejb.Stateless;
+
+import org.jboss.annotation.ejb.LocalHomeBinding;
+import org.jboss.annotation.ejb.RemoteHomeBinding;
+import org.jboss.annotation.ejb.LocalBinding;
+import org.jboss.annotation.ejb.RemoteBinding;
+
+import org.jboss.logging.Logger;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+ at Stateless
+ at Remote(RemoteInterface.class)
+ at RemoteBinding(jndiBinding="ExplicitStatelessRemote")
+ at RemoteHomeBinding(jndiBinding="ExplicitStatelessHome")
+ at RemoteHome(Home.class)
+ at Local(LocalInterface.class)
+ at LocalBinding(jndiBinding="ExplicitStatelessLocal")
+ at LocalHomeBinding(jndiBinding="ExplicitStatelessLocalHome")
+ at LocalHome(org.jboss.ejb3.test.homeinterface.LocalHome.class)
+public class ExplicitStatelessBean implements RemoteInterface, LocalInterface
+{
+   private static final Logger log = Logger.getLogger(ExplicitStatelessBean.class);
+    
+   public void test() 
+   {
+   }
+   
+   public void testLocal() 
+   {
+   }
+}

Added: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/Home.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/Home.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/Home.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,33 @@
+/*
+ * 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.homeinterface;
+
+import javax.ejb.*;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface Home extends EJBHome {
+    
+  public RemoteInterface create() throws java.rmi.RemoteException, javax.ejb.CreateException;
+} 
+

Added: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/LocalHome.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/LocalHome.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/LocalHome.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,33 @@
+/*
+ * 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.homeinterface;
+
+import javax.ejb.*;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface LocalHome extends EJBHome {
+    
+  public LocalInterface create() throws java.rmi.RemoteException, javax.ejb.CreateException;
+} 
+

Added: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/LocalInterface.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/LocalInterface.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/LocalInterface.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,30 @@
+/*
+ * 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.homeinterface;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface LocalInterface
+{
+   void testLocal();
+}

Added: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/RemoteInterface.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/RemoteInterface.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/RemoteInterface.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,30 @@
+/*
+ * 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.homeinterface;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface RemoteInterface
+{
+   void test();
+}

Added: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/Test.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/Test.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/Test.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,40 @@
+/*
+ * 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.homeinterface;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public interface Test
+{
+   void testDefaultStatelessLocal() throws Exception;
+   
+   void testExplicitStatelessLocal() throws Exception;
+   
+   void testDescriptorStatelessLocal() throws Exception;
+   
+   void testDefaultStatefulLocal() throws Exception;
+   
+   void testExplicitStatefulLocal() throws Exception;
+   
+   void testDescriptorStatefulLocal() throws Exception;
+}

Added: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/TestBean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/TestBean.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/TestBean.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,111 @@
+/*
+ * 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.homeinterface;
+
+import javax.ejb.Remote;
+import javax.ejb.RemoteHome;
+import javax.ejb.Stateless;
+import javax.ejb.EJB;
+import javax.naming.InitialContext;
+import javax.ejb.EJBs;
+
+import org.jboss.annotation.ejb.RemoteBinding;
+import org.jboss.ejb3.Container;
+
+import org.jboss.logging.Logger;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ * @version <tt>$Revision: 60233 $</tt>
+ */
+ at Stateless
+ at Remote(Test.class)
+public class TestBean implements Test
+{
+   private static final Logger log = Logger.getLogger(TestBean.class);
+   
+   public void testDefaultStatelessLocal() throws Exception
+   {
+	   InitialContext jndiContext = new InitialContext();
+	   LocalHome home = (LocalHome)jndiContext.lookup("DefaultStatelessBean/localHome");
+	   LocalInterface local = home.create();
+	   local.testLocal();
+	   
+	   local = (LocalInterface)jndiContext.lookup("DefaultStatelessBean/local");
+	   local.testLocal();
+   }
+   
+   public void testExplicitStatelessLocal() throws Exception
+   {
+	   InitialContext jndiContext = new InitialContext();
+	   LocalHome home = (LocalHome)jndiContext.lookup("ExplicitStatelessLocalHome");
+	   LocalInterface local = home.create();
+	   local.testLocal();
+	   
+	   local = (LocalInterface)jndiContext.lookup("ExplicitStatelessLocal");
+	   local.testLocal();
+   }
+   
+   public void testDescriptorStatelessLocal() throws Exception
+   {
+      InitialContext jndiContext = new InitialContext();
+      LocalHome home = (LocalHome)jndiContext.lookup("DescriptorStatelessLocalHome");
+      LocalInterface local = home.create();
+      local.testLocal();
+      
+      local = (LocalInterface)jndiContext.lookup("DescriptorStatelessBean/local");
+      local.testLocal();
+   }
+   
+   public void testDefaultStatefulLocal() throws Exception
+   {
+      InitialContext jndiContext = new InitialContext();
+      LocalHome home = (LocalHome)jndiContext.lookup("DefaultStatefulBean/localHome");
+      LocalInterface local = home.create();
+      local.testLocal();
+      
+      local = (LocalInterface)jndiContext.lookup("DefaultStatefulBean/local");
+      local.testLocal();
+   }
+   
+   public void testExplicitStatefulLocal() throws Exception
+   {
+      InitialContext jndiContext = new InitialContext();
+      LocalHome home = (LocalHome)jndiContext.lookup("ExplicitStatefulLocalHome");
+      LocalInterface local = home.create();
+      local.testLocal();
+      
+      local = (LocalInterface)jndiContext.lookup("ExplicitStatefulLocal");
+      local.testLocal();
+   }
+   
+   public void testDescriptorStatefulLocal() throws Exception
+   {
+      InitialContext jndiContext = new InitialContext();
+      LocalHome home = (LocalHome)jndiContext.lookup("DescriptorStatefulLocalHome");
+      LocalInterface local = home.create();
+      local.testLocal();
+      
+      local = (LocalInterface)jndiContext.lookup("DescriptorStatefulBean/local");
+      local.testLocal();
+   }
+}

Added: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/unit/HomeTestCase.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/unit/HomeTestCase.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/homeinterface/unit/HomeTestCase.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -0,0 +1,133 @@
+/*
+ * 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.homeinterface.unit;
+
+import javax.naming.InitialContext;
+
+import org.jboss.ejb3.test.homeinterface.*;
+
+import org.jboss.logging.Logger;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
+ */
+public class HomeTestCase
+    extends JBossTestCase {
+
+   private static final Logger log = Logger
+         .getLogger(HomeTestCase.class);
+
+   public HomeTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testDefaultStateless() throws Exception
+   {
+      InitialContext jndiContext = new InitialContext();
+      Home home = (Home)jndiContext.lookup("DefaultStatelessBean/home");
+      RemoteInterface remote = home.create();
+      remote.test();
+      
+      remote = (RemoteInterface)jndiContext.lookup("DefaultStatelessBean/remote");
+      remote.test();
+      
+      Test test = (Test)jndiContext.lookup("TestBean/remote");
+      test.testDefaultStatelessLocal();
+   }
+   
+   public void testExplicitStateless() throws Exception
+   {
+      InitialContext jndiContext = new InitialContext();
+      Home home = (Home)jndiContext.lookup("ExplicitStatelessHome");
+      RemoteInterface remote = home.create();
+      remote.test();
+      
+      remote = (RemoteInterface)jndiContext.lookup("ExplicitStatelessRemote");
+      remote.test();
+      
+      Test test = (Test)jndiContext.lookup("TestBean/remote");
+      test.testExplicitStatelessLocal();
+   }
+   
+   public void testDescriptorStateless() throws Exception
+   {
+      InitialContext jndiContext = new InitialContext();
+      Home home = (Home)jndiContext.lookup("DescriptorStatelessHome");
+      RemoteInterface remote = home.create();
+      remote.test();
+      
+      remote = (RemoteInterface)jndiContext.lookup("DescriptorStatelessBean/remote");
+      remote.test();
+      
+      Test test = (Test)jndiContext.lookup("TestBean/remote");
+      test.testDescriptorStatelessLocal();
+   }
+   
+   public void testDefaultStateful() throws Exception
+   {
+      InitialContext jndiContext = new InitialContext();
+      Home home = (Home)jndiContext.lookup("DefaultStatefulBean/home");
+      RemoteInterface remote = home.create();
+      remote.test();
+      
+      remote = (RemoteInterface)jndiContext.lookup("DefaultStatefulBean/remote");
+      remote.test();
+      
+      Test test = (Test)jndiContext.lookup("TestBean/remote");
+      test.testDefaultStatefulLocal();
+   }
+   
+   public void testExplicitStateful() throws Exception
+   {
+      InitialContext jndiContext = new InitialContext();
+      Home home = (Home)jndiContext.lookup("ExplicitStatefulHome");
+      RemoteInterface remote = home.create();
+      remote.test();
+      
+      remote = (RemoteInterface)jndiContext.lookup("ExplicitStatefulRemote");
+      remote.test();
+      
+      Test test = (Test)jndiContext.lookup("TestBean/remote");
+      test.testExplicitStatefulLocal();
+   }
+   
+   public void testDescriptorStateful() throws Exception
+   {
+      InitialContext jndiContext = new InitialContext();
+      Home home = (Home)jndiContext.lookup("DescriptorStatefulHome");
+      RemoteInterface remote = home.create();
+      remote.test();
+      
+      remote = (RemoteInterface)jndiContext.lookup("DescriptorStatefulBean/remote");
+      remote.test();
+      
+      Test test = (Test)jndiContext.lookup("TestBean/remote");
+      test.testDescriptorStatefulLocal();
+   }
+   
+   public static junit.framework.Test suite() throws Exception
+   {
+      return getDeploySetup(HomeTestCase.class, "homeinterface-test.jar");
+   }
+}

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/iiop/unit/IiopRemoteUnitTestCase.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/iiop/unit/IiopRemoteUnitTestCase.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/iiop/unit/IiopRemoteUnitTestCase.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -107,7 +107,7 @@
    public void test2() throws Exception
    {
       InitialContext ctx = getInitialContext();
-      Object obj = ctx.lookup("MyStatefulBean/remoteHome");
+      Object obj = ctx.lookup("MyStatefulBean/home");
       MyStatefulHome home = (MyStatefulHome) PortableRemoteObject.narrow(obj, MyStatefulHome.class);
       //MyStateful bean1 = (MyStateful) PortableRemoteObject.narrow(obj, MyStateful.class);
       MyStateful bean1 = home.create();
@@ -120,7 +120,7 @@
    public void testGetEJBHome() throws Exception
    {
       InitialContext ctx = getInitialContext();
-      Object obj = ctx.lookup("HomedStatelessBean/remoteHome");
+      Object obj = ctx.lookup("HomedStatelessBean/home");
       HomedStatelessHome home = (HomedStatelessHome) PortableRemoteObject.narrow(obj, HomedStatelessHome.class);
       MySession session = home.create();
       Object o = session.getEJBHome();
@@ -131,7 +131,7 @@
    public void testGetHandle() throws Exception
    {
       InitialContext ctx = getInitialContext();
-      Object obj = ctx.lookup("HomedStatelessBean/remoteHome");
+      Object obj = ctx.lookup("HomedStatelessBean/home");
       HomedStatelessHome home = (HomedStatelessHome) PortableRemoteObject.narrow(obj, HomedStatelessHome.class);
       MySession session = home.create();
       Handle h = session.getHandle();
@@ -147,7 +147,7 @@
    public void testGetHomeHandle() throws Exception
    {
       InitialContext ctx = getInitialContext();
-      Object obj = ctx.lookup("HomedStatelessBean/remoteHome");
+      Object obj = ctx.lookup("HomedStatelessBean/home");
       HomedStatelessHome home = (HomedStatelessHome) PortableRemoteObject.narrow(obj, HomedStatelessHome.class);
       HomeHandle h = home.getHomeHandle();
       MarshalledObject mo = new MarshalledObject(h);
@@ -160,7 +160,7 @@
    public void testGetPrimaryKeyAndRemove() throws Exception
    {
       InitialContext ctx = getInitialContext();
-      Object obj = ctx.lookup("MyStatefulBean/remoteHome");
+      Object obj = ctx.lookup("MyStatefulBean/home");
       MyStatefulHome home = (MyStatefulHome) PortableRemoteObject.narrow(obj, MyStatefulHome.class);
       MyStateful session = home.create();
       Object primaryKey = session.getPrimaryKey();
@@ -181,7 +181,7 @@
    public void testHomedStateless() throws Exception
    {
       InitialContext ctx = getInitialContext();
-      Object obj = ctx.lookup("HomedStatelessBean/remoteHome");
+      Object obj = ctx.lookup("HomedStatelessBean/home");
       HomedStatelessHome home = (HomedStatelessHome) PortableRemoteObject.narrow(obj, HomedStatelessHome.class);
       MySession session = home.create();
       String me = new Date().toString();
@@ -192,7 +192,7 @@
    public void testIsIdentical() throws Exception
    {
       InitialContext ctx = getInitialContext();
-      Object obj = ctx.lookup("MyStatefulBean/remoteHome");
+      Object obj = ctx.lookup("MyStatefulBean/home");
       MyStatefulHome home = (MyStatefulHome) PortableRemoteObject.narrow(obj, MyStatefulHome.class);
       MyStateful session = home.create();
       Handle h = session.getHandle();
@@ -206,7 +206,7 @@
    public void testRemoveByHandle() throws Exception
    {
       InitialContext ctx = getInitialContext();
-      Object obj = ctx.lookup("MyStatefulBean/remoteHome");
+      Object obj = ctx.lookup("MyStatefulBean/home");
       MyStatefulHome home = (MyStatefulHome) PortableRemoteObject.narrow(obj, MyStatefulHome.class);
       MyStateful session = home.create();
       session.setName("Me");

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/GlobalSession30Bean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/GlobalSession30Bean.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/GlobalSession30Bean.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -34,7 +34,7 @@
  */
 @Stateless(name="GlobalSession30")
 @Remote(Session30.class)
- at RemoteBinding(jndiBinding = "GlobalSession30")
+ at RemoteBinding(jndiBinding = "GlobalSession30Remote")
 public class GlobalSession30Bean 
 {
    private static final Logger log = Logger.getLogger(GlobalSession30Bean.class);
@@ -68,7 +68,7 @@
    {
       try {
          InitialContext jndiContext = new InitialContext();
-         Session21Home home = (Session21Home)jndiContext.lookup("Session21");
+         Session21Home home = (Session21Home)jndiContext.lookup("Session21Remote");
          Session21 session = (Session21)home.create();
          return session.access();
       } catch (Exception e)

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/HomedStatefulSession30Bean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/HomedStatefulSession30Bean.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/HomedStatefulSession30Bean.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -42,7 +42,7 @@
 @LocalHome(StatefulSession30LocalHome.class)
 @Local(LocalStatefulSession30.class)
 @Remote(StatefulSession30.class)
- at RemoteBinding(jndiBinding = "HomedStatefulSession30")
+ at RemoteBinding(jndiBinding = "HomedStatefulSession30Remote")
 @LocalBinding(jndiBinding = "HomedLocalStatefulSession30")
 public class HomedStatefulSession30Bean implements java.io.Serializable
 {

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/Session21Bean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/Session21Bean.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/Session21Bean.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -56,7 +56,7 @@
    {
       try {
          InitialContext jndiContext = new InitialContext();
-         Session30 session = (Session30)jndiContext.lookup("GlobalSession30");
+         Session30 session = (Session30)jndiContext.lookup("GlobalSession30Remote");
          return session.access();
       } catch (Exception e)
       {

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/Session30Bean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/Session30Bean.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/Session30Bean.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -40,7 +40,7 @@
 @Stateless(name="Session30")
 @Remote(Session30.class)
 @Local(LocalSession30.class)
- at RemoteBinding(jndiBinding = "Session30")
+ at RemoteBinding(jndiBinding = "Session30Remote")
 @LocalBinding(jndiBinding = "LocalSession30")
 @EJBs({@EJB(name="injected", beanInterface=org.jboss.ejb3.test.reference21_30.Session21.class, beanName="Session21")})
 public class Session30Bean 
@@ -85,7 +85,7 @@
    {
       try {
          InitialContext jndiContext = new InitialContext();
-         StatefulSession30LocalHome localHome = (StatefulSession30LocalHome)jndiContext.lookup("LocalStatefulSession30Home");
+         StatefulSession30LocalHome localHome = (StatefulSession30LocalHome)jndiContext.lookup("StatefulSession30/localHome");
          LocalStatefulSession30 localSession = localHome.create();
          return localSession.getLocalValue();
       } catch (Exception e)
@@ -99,7 +99,7 @@
    {
       try {
          InitialContext jndiContext = new InitialContext();
-         StatefulSession30LocalHome localHome = (StatefulSession30LocalHome)jndiContext.lookup("LocalStatefulSession30Home");
+         StatefulSession30LocalHome localHome = (StatefulSession30LocalHome)jndiContext.lookup("StatefulSession30/localHome");
          LocalStatefulSession30 localSession = localHome.create(value);
          return localSession.getLocalValue();
       } catch (Exception e)
@@ -113,7 +113,7 @@
    {
       try {
          InitialContext jndiContext = new InitialContext();
-         StatefulSession30LocalHome localHome = (StatefulSession30LocalHome)jndiContext.lookup("LocalStatefulSession30Home");
+         StatefulSession30LocalHome localHome = (StatefulSession30LocalHome)jndiContext.lookup("StatefulSession30/localHome");
          LocalStatefulSession30 localSession = localHome.create(value, suffix);
          return localSession.getLocalValue();
       } catch (Exception e)

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/StatefulSession30Bean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/StatefulSession30Bean.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/StatefulSession30Bean.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -38,7 +38,7 @@
 @Stateful(name="StatefulSession30")
 @Local(LocalStatefulSession30.class)
 @Remote(StatefulSession30.class)
- at RemoteBinding(jndiBinding = "StatefulSession30")
+ at RemoteBinding(jndiBinding = "StatefulSession30Remote")
 @LocalBinding(jndiBinding = "LocalStatefulSession30")
 public class StatefulSession30Bean implements java.io.Serializable
 {
@@ -70,7 +70,7 @@
    {
       try {
          InitialContext jndiContext = new InitialContext();
-         Session30LocalHome localHome = (Session30LocalHome)jndiContext.lookup("LocalSession30Home");
+         Session30LocalHome localHome = (Session30LocalHome)jndiContext.lookup("Session30/localHome");
          LocalSession30 localSession = localHome.create();
          return localSession.access();
       } catch (Exception e)
@@ -85,7 +85,7 @@
       try
       {
          InitialContext jndiContext = new InitialContext();
-         StatefulSession30LocalHome home = (StatefulSession30LocalHome)jndiContext.lookup("HomedLocalStatefulSession30Home");
+         StatefulSession30LocalHome home = (StatefulSession30LocalHome)jndiContext.lookup("HomedStatefulSession30/localHome");
          LocalStatefulSession30 session = (LocalStatefulSession30)home.create();
          session.setLocalValue("LocalHome");
          return session.getLocalValue();

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/Test3Bean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/Test3Bean.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/Test3Bean.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -39,7 +39,7 @@
  */
 @Stateless(name="Test3")
 @Remote(Test3.class)
- at RemoteBinding(jndiBinding="Test3")
+ at RemoteBinding(jndiBinding="Test3Remote")
 @RemoteHome(Test3Home.class)
 @EJBs({@EJB(name="injected/Test2",  mappedName="Test2")})
 public class Test3Bean

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/EarTestCase.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/EarTestCase.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/EarTestCase.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -53,7 +53,7 @@
    {
       InitialContext jndiContext = new InitialContext();
       
-      Test3 test3 = (Test3)jndiContext.lookup("Test3");
+      Test3 test3 = (Test3)jndiContext.lookup("Test3Remote");
       assertNotNull(test3);
       test3.testAccess();
       

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/GlobalReferenceTestCase.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/GlobalReferenceTestCase.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/GlobalReferenceTestCase.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -55,7 +55,7 @@
    {
       InitialContext jndiContext = new InitialContext();
  
-      Session21Home home = (Session21Home) jndiContext.lookup("Session21");
+      Session21Home home = (Session21Home) jndiContext.lookup("Session21Remote");
       Session21 session = (Session21)home.create();
       String access = session.access();
       assertEquals("Session21", access);
@@ -67,7 +67,7 @@
    {
       InitialContext jndiContext = new InitialContext();
  
-      Session30 session = (Session30) jndiContext.lookup("GlobalSession30");
+      Session30 session = (Session30) jndiContext.lookup("GlobalSession30Remote");
       String access = session.access();
       assertEquals("Session30", access);
       access = session.globalAccess21();

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/MultiDeployTestCase.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/MultiDeployTestCase.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/MultiDeployTestCase.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -53,7 +53,7 @@
    {
       InitialContext jndiContext = new InitialContext();
       
-      Test3 test3 = (Test3)jndiContext.lookup("Test3");
+      Test3 test3 = (Test3)jndiContext.lookup("Test3Remote");
       assertNotNull(test3);
       test3.testAccess();
       

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/ReferenceTestCase.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/ReferenceTestCase.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/reference21_30/unit/ReferenceTestCase.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -58,7 +58,7 @@
    {
       InitialContext jndiContext = new InitialContext();
       
-      Session21 session = (Session21)jndiContext.lookup("Session21");
+      Session21 session = (Session21)jndiContext.lookup("Session21Remote");
       String access = session.access();
       assertEquals("Session21", access);
       access = session.access30();
@@ -69,7 +69,7 @@
    {
       InitialContext jndiContext = new InitialContext();
  
-      Session30 session = (Session30) jndiContext.lookup("Session30");
+      Session30 session = (Session30) jndiContext.lookup("Session30Remote");
       String access = session.access();
       assertEquals("Session30", access);
       access = session.access21();
@@ -80,12 +80,12 @@
    {
       InitialContext jndiContext = new InitialContext();
       
-      Session30 session = (Session30) jndiContext.lookup("Session30");
+      Session30 session = (Session30) jndiContext.lookup("Session30Remote");
       assertNotNull(session);
       String access = session.access();
       assertEquals("Session30", access);
       
-      Session30Home home = (Session30Home) jndiContext.lookup("Session30Home");
+      Session30Home home = (Session30Home) jndiContext.lookup("Session30/home");
       assertNotNull(home);
       session = (Session30)home.create();
       assertNotNull(session);
@@ -97,7 +97,7 @@
    {
       InitialContext jndiContext = new InitialContext();
       
-      StatefulSession30Home home = (StatefulSession30Home) jndiContext.lookup("StatefulSession30Home");
+      StatefulSession30Home home = (StatefulSession30Home) jndiContext.lookup("StatefulSession30/home");
       assertNotNull(home);
       StatefulSession30 session = (StatefulSession30)home.create();
       assertNotNull(session);
@@ -141,13 +141,13 @@
    {
       InitialContext jndiContext = new InitialContext();
       
-      StatefulSession30 session = (StatefulSession30) jndiContext.lookup("StatefulSession30");
+      StatefulSession30 session = (StatefulSession30) jndiContext.lookup("StatefulSession30Remote");
       assertNotNull(session);
       session.setValue("testing");
       String value = session.getValue();
       assertEquals("testing", value);
       
-      StatefulSession30Home home = (StatefulSession30Home) jndiContext.lookup("StatefulSession30Home");
+      StatefulSession30Home home = (StatefulSession30Home) jndiContext.lookup("StatefulSession30/home");
       assertNotNull(home);
       session = (StatefulSession30)home.create();
       assertNotNull(session);
@@ -170,7 +170,7 @@
    {
       InitialContext jndiContext = new InitialContext();
       
-      StatefulSession30Home home = (StatefulSession30Home) jndiContext.lookup("HomedStatefulSession30Home");
+      StatefulSession30Home home = (StatefulSession30Home) jndiContext.lookup("HomedStatefulSession30/home");
       assertNotNull(home);
       StatefulSession30 session = (StatefulSession30)home.create();
       assertNotNull(session);
@@ -193,7 +193,7 @@
    {
       InitialContext jndiContext = new InitialContext();
       
-      StatefulSession30 session = (StatefulSession30) jndiContext.lookup("StatefulSession30");
+      StatefulSession30 session = (StatefulSession30) jndiContext.lookup("StatefulSession30Remote");
       
       String access = session.accessLocalHome();
       assertEquals("LocalHome", access);
@@ -203,12 +203,12 @@
    {
       InitialContext jndiContext = new InitialContext();
       
-      StatefulSession30 statefulSession = (StatefulSession30) jndiContext.lookup("StatefulSession30");
+      StatefulSession30 statefulSession = (StatefulSession30) jndiContext.lookup("StatefulSession30Remote");
       assertNotNull(statefulSession);
       String access = statefulSession.accessLocalStateless();
       assertEquals("Session30", access);
       
-      Session30 session = (Session30) jndiContext.lookup("Session30");
+      Session30 session = (Session30) jndiContext.lookup("Session30Remote");
       assertNotNull(session);
       access = session.accessLocalStateful();
       assertEquals("default", access);
@@ -224,16 +224,16 @@
    {
       InitialContext jndiContext = new InitialContext();
            
-      StatefulSession30 session1 = (StatefulSession30) jndiContext.lookup("StatefulSession30");
+      StatefulSession30 session1 = (StatefulSession30) jndiContext.lookup("StatefulSession30Remote");
       assertNotNull(session1);
       session1.setValue("testing");
       assertEquals("testing", session1.getValue());
       
-      StatefulSession30 session2 = (StatefulSession30) jndiContext.lookup("StatefulSession30");
+      StatefulSession30 session2 = (StatefulSession30) jndiContext.lookup("StatefulSession30Remote");
       assertNotNull(session2);
       assertEquals("default", session2.getValue());
      
-      StatefulSession30Home home = (StatefulSession30Home) jndiContext.lookup("StatefulSession30Home");
+      StatefulSession30Home home = (StatefulSession30Home) jndiContext.lookup("StatefulSession30/home");
       assertNotNull(home);
       StatefulSession30 session3 = (StatefulSession30)home.create();
       assertNotNull(session3);
@@ -257,7 +257,7 @@
       assertNotNull(session7);
       assertEquals("secondinit", session7.getValue());
       
-      StatefulSession30 session8 = (StatefulSession30) jndiContext.lookup("StatefulSession30");
+      StatefulSession30 session8 = (StatefulSession30) jndiContext.lookup("StatefulSession30Remote");
       assertNotNull(session8);
       assertEquals("default", session8.getValue());
       
@@ -274,7 +274,7 @@
    {
       InitialContext jndiContext = new InitialContext();
       
-      StatefulSession30Home home = (StatefulSession30Home) jndiContext.lookup("StatefulSession30Home");
+      StatefulSession30Home home = (StatefulSession30Home) jndiContext.lookup("StatefulSession30/home");
       assertNotNull(home);
       
       EJBMetaData metadata = home.getEJBMetaData();
@@ -318,7 +318,7 @@
    {
       InitialContext jndiContext = new InitialContext();
       
-      Session30Home home = (Session30Home) jndiContext.lookup("Session30Home");
+      Session30Home home = (Session30Home) jndiContext.lookup("Session30/home");
       assertNotNull(home);
       
       EJBMetaData metadata = home.getEJBMetaData();

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/regression/ejbthree653/unit/PoolingSLBSTestCase.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/regression/ejbthree653/unit/PoolingSLBSTestCase.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/regression/ejbthree653/unit/PoolingSLBSTestCase.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -45,7 +45,7 @@
 
    public void test1() throws Exception
    {
-      MyStateful21Home home = (MyStateful21Home) getInitialContext().lookup("MyStateful21Bean/remoteHome");
+      MyStateful21Home home = (MyStateful21Home) getInitialContext().lookup("MyStateful21Bean/home");
       MyStateful21 session = home.create();
       for(int i = 0; i < 1000; i++)
       {

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/regression/ejbthree670/unit/PreDestroyCallsTestCase.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/regression/ejbthree670/unit/PreDestroyCallsTestCase.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/regression/ejbthree670/unit/PreDestroyCallsTestCase.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -62,7 +62,7 @@
    
    public void test21() throws Exception
    {
-      MyStateful21Home home = (MyStateful21Home) getInitialContext().lookup("MyStateful21Bean/remoteHome");
+      MyStateful21Home home = (MyStateful21Home) getInitialContext().lookup("MyStateful21Bean/home");
       MyStateful21 session = home.create();
       session.setName("Test");
       String actual = session.sayHello();
@@ -81,7 +81,7 @@
    
    public void testRemoveByHandle() throws Exception
    {
-      MyStateful21Home home = (MyStateful21Home) getInitialContext().lookup("MyStateful21Bean/remoteHome");
+      MyStateful21Home home = (MyStateful21Home) getInitialContext().lookup("MyStateful21Bean/home");
       MyStateful21 session = home.create();
       session.setName("Test");
       String actual = session.sayHello();

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/servlet/servlets/EJBServlet.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/servlet/servlets/EJBServlet.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/servlet/servlets/EJBServlet.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -79,11 +79,11 @@
          
          WarTestObject warObject = (WarTestObject)session.getWarTestObject();
          
-         Session30Home home = (Session30Home)ctx.lookup("ejb/Session30Home");
+         Session30Home home = (Session30Home)ctx.lookup("Session30/home");
          session = home.create();
          session.access(o);
          
-         Session30LocalHome localHome = (Session30LocalHome)ctx.lookup("ejb/Session30LocalHome");
+         Session30LocalHome localHome = (Session30LocalHome)ctx.lookup("Session30/localHome");
          session = localHome.create();
          session.access(o);
          

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/MetricsUnitTestCase.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/MetricsUnitTestCase.java	2007-03-01 20:43:34 UTC (rev 61033)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/MetricsUnitTestCase.java	2007-03-01 23:55:24 UTC (rev 61034)
@@ -71,7 +71,7 @@
 	      
 	   MBeanServerConnection server = getServer();
 	      
-	   testJmxMetrics(server, "Stateful", "jboss.j2ee:jar=stateful-test.jar,name=StatefulBean,service=EJB3");
+	//   testJmxMetrics(server, "Stateful", "jboss.j2ee:jar=stateful-test.jar,name=StatefulBean,service=EJB3");
 	   testJmxMetrics(server, "TreeCacheStateful", "jboss.j2ee:jar=stateful-test.jar,name=TreeCacheStatefulBean,service=EJB3");
    }
    
@@ -96,7 +96,7 @@
       assertEquals(null, stateful.getInterceptorState());
       stateful.setInterceptorState("hello world");
       assertFalse(stateful.testSessionContext());
-      Thread.sleep(10 * 1000);
+      Thread.sleep(60 * 10 * 1000);
       
       size = (Integer)server.getAttribute(testerName, "CacheSize");
       assertEquals(0, size);




More information about the jboss-cvs-commits mailing list