You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2007/01/24 07:44:38 UTC

svn commit: r499281 [2/2] - in /incubator/openejb/trunk/openejb3: container/openejb-core/src/main/java/org/apache/openejb/core/stateful/ container/openejb-core/src/main/java/org/apache/openejb/core/stateless/ itests/openejb-itests-beans/src/main/java/o...

Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/EncStatelessBean.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/EncStatelessBean.java?view=diff&rev=499281&r1=499280&r2=499281
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/EncStatelessBean.java (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/EncStatelessBean.java Tue Jan 23 22:44:36 2007
@@ -35,6 +35,8 @@
 import org.apache.openejb.test.entity.bmp.BasicBmpObject;
 import org.apache.openejb.test.stateful.BasicStatefulHome;
 import org.apache.openejb.test.stateful.BasicStatefulObject;
+import org.apache.openejb.test.stateful.BasicStatefulBusinessRemote;
+import org.apache.openejb.test.stateful.BasicStatefulBusinessLocal;
 
 /**
  *
@@ -115,6 +117,72 @@
         }
     }
 
+    public void lookupStatelessBusinessLocal() throws TestFailureException{
+        try{
+            try{
+            InitialContext ctx = new InitialContext();
+            Assert.assertNotNull("The InitialContext is null", ctx );
+
+                Object o = ctx.lookup("java:comp/env/stateless/beanReferences/stateless-business-local");
+                BasicStatelessBusinessLocal object = (BasicStatelessBusinessLocal) o;
+            Assert.assertNotNull("The EJB BusinessLocal is null", object );
+            } catch (Exception e){
+                e.printStackTrace();
+                Assert.fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+            }
+        } catch (AssertionFailedError afe){
+            throw new TestFailureException(afe);
+        }
+    }
+
+    public void lookupStatelessBusinessRemote() throws TestFailureException{
+        try{
+            try{
+            InitialContext ctx = new InitialContext();
+            Assert.assertNotNull("The InitialContext is null", ctx );
+
+            BasicStatelessBusinessRemote object = (BasicStatelessBusinessRemote) javax.rmi.PortableRemoteObject.narrow( ctx.lookup("java:comp/env/stateless/beanReferences/stateless-business-remote"), BasicStatelessBusinessRemote.class );
+            Assert.assertNotNull("The EJB BusinessRemote is null", object );
+            } catch (Exception e){
+                Assert.fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+            }
+        } catch (AssertionFailedError afe){
+            throw new TestFailureException(afe);
+        }
+    }
+
+    public void lookupStatefulBusinessLocal() throws TestFailureException{
+        try{
+            try{
+            InitialContext ctx = new InitialContext();
+            Assert.assertNotNull("The InitialContext is null", ctx );
+
+            BasicStatefulBusinessLocal object = (BasicStatefulBusinessLocal) javax.rmi.PortableRemoteObject.narrow( ctx.lookup("java:comp/env/stateless/beanReferences/stateful-business-local"), BasicStatefulBusinessLocal.class );
+            Assert.assertNotNull("The EJB BusinessLocal is null", object );
+            } catch (Exception e){
+                Assert.fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+            }
+        } catch (AssertionFailedError afe){
+            throw new TestFailureException(afe);
+        }
+    }
+
+    public void lookupStatefulBusinessRemote() throws TestFailureException{
+        try{
+            try{
+            InitialContext ctx = new InitialContext();
+            Assert.assertNotNull("The InitialContext is null", ctx );
+
+            BasicStatefulBusinessRemote object = (BasicStatefulBusinessRemote) javax.rmi.PortableRemoteObject.narrow( ctx.lookup("java:comp/env/stateless/beanReferences/stateful-business-remote"), BasicStatefulBusinessRemote.class );
+            Assert.assertNotNull("The EJB BusinessRemote is null", object );
+            } catch (Exception e){
+                Assert.fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+            }
+        } catch (AssertionFailedError afe){
+            throw new TestFailureException(afe);
+        }
+    }
+
     public void lookupStringEntry() throws TestFailureException{
         try{
             try{
@@ -302,7 +370,7 @@
                 Assert.assertNotNull("The InitialContext is null", ctx);
                 Object obj = ctx.lookup("java:comp/env/datasource");
                 Assert.assertNotNull("The DataSource is null", obj);
-                Assert.assertTrue("Not an instance of DataSource", obj instanceof DataSource);                
+                Assert.assertTrue("Not an instance of DataSource", obj instanceof DataSource);
             } catch (Exception e){
                 Assert.fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
             }
@@ -315,7 +383,7 @@
         try{
             try{
                 InitialContext ctx = new InitialContext();
-                Assert.assertNotNull("The InitialContext is null", ctx);                
+                Assert.assertNotNull("The InitialContext is null", ctx);
                 EntityManagerFactory emf = (EntityManagerFactory)ctx.lookup("java:comp/env/persistence/TestUnit");
                 Assert.assertNotNull("The EntityManagerFactory is null", emf );
 
@@ -326,7 +394,7 @@
             throw new TestFailureException(afe);
         }
     }
-    
+
     public void lookupPersistenceContext() throws TestFailureException{
         try{
             try{
@@ -344,12 +412,12 @@
             throw new TestFailureException(afe);
         }
     }
-    
+
     public void lookupSessionContext() throws TestFailureException{
         try{
             try{
                 InitialContext ctx = new InitialContext();
-                Assert.assertNotNull("The InitialContext is null", ctx);                
+                Assert.assertNotNull("The InitialContext is null", ctx);
 
                 // lookup in enc
                 SessionContext sctx = (SessionContext)ctx.lookup("java:comp/env/sessioncontext");
@@ -367,10 +435,10 @@
         } catch (AssertionFailedError afe){
             throw new TestFailureException(afe);
         }
-        
+
     }
-    
-    
+
+
     //    
     // Remote interface methods
     //=============================

Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/EncStatelessObject.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/EncStatelessObject.java?view=diff&rev=499281&r1=499280&r2=499281
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/EncStatelessObject.java (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/EncStatelessObject.java Tue Jan 23 22:44:36 2007
@@ -21,16 +21,21 @@
 import org.apache.openejb.test.TestFailureException;
 
 /**
- * 
+ *
  * @author <a href="mailto:david.blevins@visi.com">David Blevins</a>
  * @author <a href="mailto:Richard@Monson-Haefel.com">Richard Monson-Haefel</a>
  */
 public interface EncStatelessObject extends javax.ejb.EJBObject{
-    
+
     public void lookupEntityBean()    throws TestFailureException, RemoteException;
     public void lookupStatefulBean()  throws TestFailureException, RemoteException;
     public void lookupStatelessBean() throws TestFailureException, RemoteException;
 
+    public void lookupStatelessBusinessLocal() throws TestFailureException, RemoteException;
+    public void lookupStatelessBusinessRemote() throws TestFailureException, RemoteException;
+    public void lookupStatefulBusinessLocal() throws TestFailureException, RemoteException;
+    public void lookupStatefulBusinessRemote() throws TestFailureException, RemoteException;
+ 
     public void lookupResource() throws TestFailureException, RemoteException;
     public void lookupPersistenceUnit() throws TestFailureException, RemoteException;
     public void lookupPersistenceContext() throws TestFailureException, RemoteException;

Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/FieldInjectionStatelessBean.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/FieldInjectionStatelessBean.java?view=diff&rev=499281&r1=499280&r2=499281
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/FieldInjectionStatelessBean.java (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/FieldInjectionStatelessBean.java Tue Jan 23 22:44:36 2007
@@ -18,6 +18,8 @@
 
 import org.apache.openejb.test.entity.bmp.BasicBmpHome;
 import org.apache.openejb.test.stateful.BasicStatefulHome;
+import org.apache.openejb.test.stateful.BasicStatefulBusinessLocal;
+import org.apache.openejb.test.stateful.BasicStatefulBusinessRemote;
 import org.apache.openejb.test.TestFailureException;
 
 import javax.ejb.SessionBean;
@@ -57,6 +59,10 @@
     private EntityManager em;
     private EntityManager eem;
     private EntityManager pem;
+    private BasicStatelessBusinessLocal statelessBusinessLocal;
+    private BasicStatelessBusinessRemote statelessBusinessRemote;
+    private BasicStatefulBusinessLocal statefulBusinessLocal;
+    private BasicStatefulBusinessRemote statefulBusinessRemote;
 
 
     public void ejbCreate() throws CreateException {
@@ -86,6 +92,38 @@
         }
     }
 
+    public void lookupStatelessBusinessLocal() throws TestFailureException{
+        try{
+            Assert.assertNotNull("The EJB BusinessLocal is null", statelessBusinessLocal );
+        } catch (AssertionFailedError afe){
+            throw new TestFailureException(afe);
+        }
+    }
+
+    public void lookupStatelessBusinessRemote() throws TestFailureException{
+        try{
+            Assert.assertNotNull("The EJB BusinessRemote is null", statelessBusinessRemote );
+        } catch (AssertionFailedError afe){
+            throw new TestFailureException(afe);
+        }
+    }
+
+    public void lookupStatefulBusinessLocal() throws TestFailureException{
+        try{
+            Assert.assertNotNull("The EJB BusinessLocal is null", statefulBusinessLocal );
+        } catch (AssertionFailedError afe){
+            throw new TestFailureException(afe);
+        }
+    }
+
+    public void lookupStatefulBusinessRemote() throws TestFailureException{
+        try{
+            Assert.assertNotNull("The EJB BusinessRemote is null", statefulBusinessRemote );
+        } catch (AssertionFailedError afe){
+            throw new TestFailureException(afe);
+        }
+    }
+    
     public void lookupStringEntry() throws TestFailureException {
         try {
             String expected = new String("1");

Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/SetterInjectionStatelessBean.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/SetterInjectionStatelessBean.java?view=diff&rev=499281&r1=499280&r2=499281
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/SetterInjectionStatelessBean.java (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/SetterInjectionStatelessBean.java Tue Jan 23 22:44:36 2007
@@ -18,6 +18,8 @@
 
 import org.apache.openejb.test.entity.bmp.BasicBmpHome;
 import org.apache.openejb.test.stateful.BasicStatefulHome;
+import org.apache.openejb.test.stateful.BasicStatefulBusinessLocal;
+import org.apache.openejb.test.stateful.BasicStatefulBusinessRemote;
 import org.apache.openejb.test.TestFailureException;
 
 import javax.ejb.SessionBean;
@@ -57,7 +59,42 @@
     private EntityManager emField;
     private EntityManager eemField;
     private EntityManager pemField;
+    private BasicStatelessBusinessLocal statelessBusinessLocalField;
+    private BasicStatelessBusinessRemote statelessBusinessRemoteField;
+    private BasicStatefulBusinessLocal statefulBusinessLocalField;
+    private BasicStatefulBusinessRemote statefulBusinessRemoteField;
 
+    public BasicStatefulBusinessLocal getStatefulBusinessLocal() {
+        return statefulBusinessLocalField;
+    }
+
+    public void setStatefulBusinessLocal(BasicStatefulBusinessLocal statefulBusinessLocal) {
+        this.statefulBusinessLocalField = statefulBusinessLocal;
+    }
+
+    public BasicStatefulBusinessRemote getStatefulBusinessRemote() {
+        return statefulBusinessRemoteField;
+    }
+
+    public void setStatefulBusinessRemote(BasicStatefulBusinessRemote statefulBusinessRemote) {
+        this.statefulBusinessRemoteField = statefulBusinessRemote;
+    }
+
+    public BasicStatelessBusinessLocal getStatelessBusinessLocal() {
+        return statelessBusinessLocalField;
+    }
+
+    public void setStatelessBusinessLocal(BasicStatelessBusinessLocal statelessBusinessLocal) {
+        this.statelessBusinessLocalField = statelessBusinessLocal;
+    }
+
+    public BasicStatelessBusinessRemote getStatelessBusinessRemote() {
+        return statelessBusinessRemoteField;
+    }
+
+    public void setStatelessBusinessRemote(BasicStatelessBusinessRemote statelessBusinessRemote) {
+        this.statelessBusinessRemoteField = statelessBusinessRemote;
+    }
 
     public BasicBmpHome getBmpHome() {
         return bmpHomeField;
@@ -229,6 +266,39 @@
             throw new TestFailureException(afe);
         }
     }
+
+    public void lookupStatelessBusinessLocal() throws TestFailureException{
+        try{
+            Assert.assertNotNull("The EJB BusinessLocal is null", statelessBusinessLocalField );
+        } catch (AssertionFailedError afe){
+            throw new TestFailureException(afe);
+        }
+    }
+
+    public void lookupStatelessBusinessRemote() throws TestFailureException{
+        try{
+            Assert.assertNotNull("The EJB BusinessRemote is null", statelessBusinessRemoteField );
+        } catch (AssertionFailedError afe){
+            throw new TestFailureException(afe);
+        }
+    }
+
+    public void lookupStatefulBusinessLocal() throws TestFailureException{
+        try{
+            Assert.assertNotNull("The EJB BusinessLocal is null", statefulBusinessLocalField );
+        } catch (AssertionFailedError afe){
+            throw new TestFailureException(afe);
+        }
+    }
+
+    public void lookupStatefulBusinessRemote() throws TestFailureException{
+        try{
+            Assert.assertNotNull("The EJB BusinessRemote is null", statefulBusinessRemoteField );
+        } catch (AssertionFailedError afe){
+            throw new TestFailureException(afe);
+        }
+    }
+
 
     public void lookupStringEntry() throws TestFailureException {
         try {

Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/ejb-jar.xml
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/ejb-jar.xml?view=diff&rev=499281&r1=499280&r2=499281
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/ejb-jar.xml (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-beans/src/main/resources/META-INF/ejb-jar.xml Tue Jan 23 22:44:36 2007
@@ -272,6 +272,30 @@
         <remote>org.apache.openejb.test.stateless.BasicStatelessObject</remote>
         <ejb-link>BasicStatelessBean</ejb-link>
       </ejb-ref>
+      <ejb-local-ref>
+        <ejb-ref-name>entity/cmp/beanReferences/stateless-business-local</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <local>org.apache.openejb.test.stateless.BasicStatelessBusinessLocal</local>
+        <ejb-link>BasicStatelessPojoBean</ejb-link>
+      </ejb-local-ref>
+      <ejb-ref>
+        <ejb-ref-name>entity/cmp/beanReferences/stateless-business-remote</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <remote>org.apache.openejb.test.stateless.BasicStatelessBusinessRemote</remote>
+        <ejb-link>BasicStatelessPojoBean</ejb-link>
+      </ejb-ref>
+      <ejb-local-ref>
+        <ejb-ref-name>entity/cmp/beanReferences/stateful-business-local</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <local>org.apache.openejb.test.stateful.BasicStatefulBusinessLocal</local>
+        <ejb-link>BasicStatefulPojoBean</ejb-link>
+      </ejb-local-ref>
+      <ejb-ref>
+        <ejb-ref-name>entity/cmp/beanReferences/stateful-business-remote</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <remote>org.apache.openejb.test.stateful.BasicStatefulBusinessRemote</remote>
+        <ejb-link>BasicStatefulPojoBean</ejb-link>
+      </ejb-ref>
       <resource-ref>
         <res-ref-name>datasource</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
@@ -391,6 +415,30 @@
         <remote>org.apache.openejb.test.stateless.BasicStatelessObject</remote>
         <ejb-link>BasicStatelessBean</ejb-link>
       </ejb-ref>
+      <ejb-local-ref>
+        <ejb-ref-name>entity/cmp/beanReferences/stateless-business-local</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <local>org.apache.openejb.test.stateless.BasicStatelessBusinessLocal</local>
+        <ejb-link>BasicStatelessPojoBean</ejb-link>
+      </ejb-local-ref>
+      <ejb-ref>
+        <ejb-ref-name>entity/cmp/beanReferences/stateless-business-remote</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <remote>org.apache.openejb.test.stateless.BasicStatelessBusinessRemote</remote>
+        <ejb-link>BasicStatelessPojoBean</ejb-link>
+      </ejb-ref>
+      <ejb-local-ref>
+        <ejb-ref-name>entity/cmp/beanReferences/stateful-business-local</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <local>org.apache.openejb.test.stateful.BasicStatefulBusinessLocal</local>
+        <ejb-link>BasicStatefulPojoBean</ejb-link>
+      </ejb-local-ref>
+      <ejb-ref>
+        <ejb-ref-name>entity/cmp/beanReferences/stateful-business-remote</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <remote>org.apache.openejb.test.stateful.BasicStatefulBusinessRemote</remote>
+        <ejb-link>BasicStatefulPojoBean</ejb-link>
+      </ejb-ref>
       <resource-ref>
         <res-ref-name>datasource</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
@@ -1045,6 +1093,30 @@
         <remote>org.apache.openejb.test.stateless.BasicStatelessObject</remote>
         <ejb-link>BasicStatelessBean</ejb-link>
       </ejb-ref>
+      <ejb-local-ref>
+        <ejb-ref-name>stateful/beanReferences/stateless-business-local</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <local>org.apache.openejb.test.stateless.BasicStatelessBusinessLocal</local>
+        <ejb-link>BasicStatelessPojoBean</ejb-link>
+      </ejb-local-ref>
+      <ejb-ref>
+        <ejb-ref-name>stateful/beanReferences/stateless-business-remote</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <remote>org.apache.openejb.test.stateless.BasicStatelessBusinessRemote</remote>
+        <ejb-link>BasicStatelessPojoBean</ejb-link>
+      </ejb-ref>
+      <ejb-local-ref>
+        <ejb-ref-name>stateful/beanReferences/stateful-business-local</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <local>org.apache.openejb.test.stateful.BasicStatefulBusinessLocal</local>
+        <ejb-link>BasicStatefulPojoBean</ejb-link>
+      </ejb-local-ref>
+      <ejb-ref>
+        <ejb-ref-name>stateful/beanReferences/stateful-business-remote</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <remote>org.apache.openejb.test.stateful.BasicStatefulBusinessRemote</remote>
+        <ejb-link>BasicStatefulPojoBean</ejb-link>
+      </ejb-ref>
       <security-role-ref>
         <role-name>TheMan</role-name>
         <role-link>Executive</role-link>
@@ -1421,7 +1493,7 @@
 
     <!--
     ########################################################
-    ID:  client/tests/stateful/EncBean
+    ID:  client/tests/stateful/PersistenceContextStatefulBean
     ########################################################
     -->
 
@@ -2024,6 +2096,30 @@
         <remote>org.apache.openejb.test.stateless.BasicStatelessObject</remote>
         <ejb-link>BasicStatelessBean</ejb-link>
       </ejb-ref>
+      <ejb-local-ref>
+        <ejb-ref-name>stateless/beanReferences/stateless-business-local</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <local>org.apache.openejb.test.stateless.BasicStatelessBusinessLocal</local>
+        <ejb-link>BasicStatelessPojoBean</ejb-link>
+      </ejb-local-ref>
+      <ejb-ref>
+        <ejb-ref-name>stateless/beanReferences/stateless-business-remote</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <remote>org.apache.openejb.test.stateless.BasicStatelessBusinessRemote</remote>
+        <ejb-link>BasicStatelessPojoBean</ejb-link>
+      </ejb-ref>
+      <ejb-local-ref>
+        <ejb-ref-name>stateless/beanReferences/stateful-business-local</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <local>org.apache.openejb.test.stateful.BasicStatefulBusinessLocal</local>
+        <ejb-link>BasicStatefulPojoBean</ejb-link>
+      </ejb-local-ref>
+      <ejb-ref>
+        <ejb-ref-name>stateless/beanReferences/stateful-business-remote</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <remote>org.apache.openejb.test.stateful.BasicStatefulBusinessRemote</remote>
+        <ejb-link>BasicStatefulPojoBean</ejb-link>
+      </ejb-ref>
       <security-role-ref>
         <role-name>TheMan</role-name>
         <role-link>Executive</role-link>
@@ -2840,6 +2936,30 @@
         <home>org.apache.openejb.test.stateless.BasicStatelessHome</home>
         <remote>org.apache.openejb.test.stateless.BasicStatelessObject</remote>
         <ejb-link>BasicStatelessBean</ejb-link>
+      </ejb-ref>
+      <ejb-local-ref>
+        <ejb-ref-name>entity/bmp/beanReferences/stateless-business-local</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <local>org.apache.openejb.test.stateless.BasicStatelessBusinessLocal</local>
+        <ejb-link>BasicStatelessPojoBean</ejb-link>
+      </ejb-local-ref>
+      <ejb-ref>
+        <ejb-ref-name>entity/bmp/beanReferences/stateless-business-remote</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <remote>org.apache.openejb.test.stateless.BasicStatelessBusinessRemote</remote>
+        <ejb-link>BasicStatelessPojoBean</ejb-link>
+      </ejb-ref>
+      <ejb-local-ref>
+        <ejb-ref-name>entity/bmp/beanReferences/stateful-business-local</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <local>org.apache.openejb.test.stateful.BasicStatefulBusinessLocal</local>
+        <ejb-link>BasicStatefulPojoBean</ejb-link>
+      </ejb-local-ref>
+      <ejb-ref>
+        <ejb-ref-name>entity/bmp/beanReferences/stateful-business-remote</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <remote>org.apache.openejb.test.stateful.BasicStatefulBusinessRemote</remote>
+        <ejb-link>BasicStatefulPojoBean</ejb-link>
       </ejb-ref>
       <resource-ref>
         <res-ref-name>datasource</res-ref-name>

Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/bmp/BmpJndiEncTests.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/bmp/BmpJndiEncTests.java?view=diff&rev=499281&r1=499280&r2=499281
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/bmp/BmpJndiEncTests.java (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/bmp/BmpJndiEncTests.java Tue Jan 23 22:44:36 2007
@@ -200,4 +200,43 @@
         }
     }
     
+    public void test19_lookupStatelessBusinessLocal() {
+        try{
+            ejbObject.lookupStatelessBusinessLocal();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test20_lookupStatelessBusinessRemote() {
+        try{
+            ejbObject.lookupStatelessBusinessRemote();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test21_lookupStatefulBusinessLocal() {
+        try{
+            ejbObject.lookupStatefulBusinessLocal();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test22_lookupStatefulBusinessRemote() {
+        try{
+            ejbObject.lookupStatefulBusinessRemote();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
 }

Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp/CmpJndiEncTests.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp/CmpJndiEncTests.java?view=diff&rev=499281&r1=499280&r2=499281
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp/CmpJndiEncTests.java (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp/CmpJndiEncTests.java Tue Jan 23 22:44:36 2007
@@ -200,4 +200,44 @@
         }
     }
 
+    public void test19_lookupStatelessBusinessLocal() {
+        try{
+            ejbObject.lookupStatelessBusinessLocal();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test20_lookupStatelessBusinessRemote() {
+        try{
+            ejbObject.lookupStatelessBusinessRemote();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test21_lookupStatefulBusinessLocal() {
+        try{
+            ejbObject.lookupStatefulBusinessLocal();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test22_lookupStatefulBusinessRemote() {
+        try{
+            ejbObject.lookupStatefulBusinessRemote();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+    
 }

Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp2/Cmp2JndiEncTests.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp2/Cmp2JndiEncTests.java?view=diff&rev=499281&r1=499280&r2=499281
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp2/Cmp2JndiEncTests.java (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp2/Cmp2JndiEncTests.java Tue Jan 23 22:44:36 2007
@@ -189,4 +189,44 @@
         }
     }
 
+    public void test19_lookupStatelessBusinessLocal() {
+        try{
+            ejbObject.lookupStatelessBusinessLocal();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test20_lookupStatelessBusinessRemote() {
+        try{
+            ejbObject.lookupStatelessBusinessRemote();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test21_lookupStatefulBusinessLocal() {
+        try{
+            ejbObject.lookupStatefulBusinessLocal();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test22_lookupStatefulBusinessRemote() {
+        try{
+            ejbObject.lookupStatefulBusinessRemote();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+    
 }

Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/StatefulJndiEncTests.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/StatefulJndiEncTests.java?view=diff&rev=499281&r1=499280&r2=499281
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/StatefulJndiEncTests.java (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateful/StatefulJndiEncTests.java Tue Jan 23 22:44:36 2007
@@ -219,4 +219,43 @@
         }
     }
     
+    public void test19_lookupStatelessBusinessLocal() {
+        try{
+            ejbObject.lookupStatelessBusinessLocal();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test20_lookupStatelessBusinessRemote() {
+        try{
+            ejbObject.lookupStatelessBusinessRemote();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test21_lookupStatefulBusinessLocal() {
+        try{
+            ejbObject.lookupStatefulBusinessLocal();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test22_lookupStatefulBusinessRemote() {
+        try{
+            ejbObject.lookupStatefulBusinessRemote();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
 }

Modified: incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateless/StatelessJndiEncTests.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateless/StatelessJndiEncTests.java?view=diff&rev=499281&r1=499280&r2=499281
==============================================================================
--- incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateless/StatelessJndiEncTests.java (original)
+++ incubator/openejb/trunk/openejb3/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/stateless/StatelessJndiEncTests.java Tue Jan 23 22:44:36 2007
@@ -228,4 +228,43 @@
         }
     }
 
+    public void test19_lookupStatelessBusinessLocal() {
+        try{
+            ejbObject.lookupStatelessBusinessLocal();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test20_lookupStatelessBusinessRemote() {
+        try{
+            ejbObject.lookupStatelessBusinessRemote();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test21_lookupStatefulBusinessLocal() {
+        try{
+            ejbObject.lookupStatefulBusinessLocal();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
+
+    public void test22_lookupStatefulBusinessRemote() {
+        try{
+            ejbObject.lookupStatefulBusinessRemote();
+        } catch (TestFailureException e){
+            throw e.error;
+        } catch (Exception e){
+            fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+        }
+    }
 }