[jboss-cvs] JBossAS SVN: r67215 - in branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/localfromremote: unit and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Nov 16 21:27:06 EST 2007


Author: bdecoste
Date: 2007-11-16 21:27:06 -0500 (Fri, 16 Nov 2007)
New Revision: 67215

Modified:
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/localfromremote/StatefulBean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/localfromremote/StatelessBean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/localfromremote/unit/LocalTestCase.java
Log:
[EJBTHREE-1019] fixed remoteHome binding

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/localfromremote/StatefulBean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/localfromremote/StatefulBean.java	2007-11-17 02:24:45 UTC (rev 67214)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/localfromremote/StatefulBean.java	2007-11-17 02:27:06 UTC (rev 67215)
@@ -75,7 +75,7 @@
    {
       ++homeMethodCount;
       InitialContext jndiContext = new InitialContext();
-      StatefulRemoteHome statefulHome = (StatefulRemoteHome)jndiContext.lookup("StatefulBean/remoteHome");
+      StatefulRemoteHome statefulHome = (StatefulRemoteHome)jndiContext.lookup("StatefulBean/home");
       StatefulRemote stateful = statefulHome.create();
       log.info("*** calling RemoteHome ... " + jndiContext.getEnvironment());
       return stateful.homeMethod();

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/localfromremote/StatelessBean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/localfromremote/StatelessBean.java	2007-11-17 02:24:45 UTC (rev 67214)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/localfromremote/StatelessBean.java	2007-11-17 02:27:06 UTC (rev 67215)
@@ -77,7 +77,7 @@
    {
       ++homeMethodCount;
       InitialContext jndiContext = new InitialContext();
-      StatelessRemoteHome statelessHome = (StatelessRemoteHome)jndiContext.lookup("StatelessBean/remoteHome");
+      StatelessRemoteHome statelessHome = (StatelessRemoteHome)jndiContext.lookup("StatelessBean/home");
       StatelessRemote stateless = statelessHome.create();
       return stateless.homeMethod();
    }

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/localfromremote/unit/LocalTestCase.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/localfromremote/unit/LocalTestCase.java	2007-11-17 02:24:45 UTC (rev 67214)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/localfromremote/unit/LocalTestCase.java	2007-11-17 02:27:06 UTC (rev 67215)
@@ -62,7 +62,7 @@
    
    public void testStatelessLocalHomeFromRemoteHome() throws Exception
    {
-      StatefulRemoteHome home = (StatefulRemoteHome) getInitialContext().lookup("StatefulBean/remoteHome");
+      StatefulRemoteHome home = (StatefulRemoteHome) getInitialContext().lookup("StatefulBean/home");
       StatefulRemote bean = home.create();
       assertNotNull(bean);
       
@@ -86,7 +86,7 @@
    
    public void testStatelessRemoteHomeFromRemoteHome() throws Exception
    {
-      StatefulRemoteHome home = (StatefulRemoteHome) getInitialContext().lookup("StatefulBean/remoteHome");
+      StatefulRemoteHome home = (StatefulRemoteHome) getInitialContext().lookup("StatefulBean/home");
       StatefulRemote bean = home.create();
       assertNotNull(bean);
       
@@ -105,7 +105,7 @@
    
    public void testStatefulRemoteHomeFromRemoteHome() throws Exception
    {
-      StatelessRemoteHome home = (StatelessRemoteHome) getInitialContext().lookup("StatelessBean/remoteHome");
+      StatelessRemoteHome home = (StatelessRemoteHome) getInitialContext().lookup("StatelessBean/home");
       StatelessRemote bean = home.create();
       assertNotNull(bean);
       
@@ -134,7 +134,7 @@
    public void testStatefulLocalHomeFromRemoteHome() throws Exception
    {
       InitialContext jndiContext = new InitialContext();
-      StatelessRemoteHome home = (StatelessRemoteHome) jndiContext.lookup("StatelessBean/remoteHome");
+      StatelessRemoteHome home = (StatelessRemoteHome) jndiContext.lookup("StatelessBean/home");
       StatelessRemote bean = home.create();
       assertNotNull(bean);
       




More information about the jboss-cvs-commits mailing list