1 45 package org.openejb.test.entity.cmp; 46 47 48 54 public class CmpJndiTests extends BasicCmpTestClient{ 55 56 public CmpJndiTests(){ 57 super("JNDI."); 58 } 59 60 public void test01_Jndi_lookupHome(){ 61 try{ 62 Object obj = initialContext.lookup("client/tests/entity/cmp/BasicCmpHome"); 63 ejbHome = (BasicCmpHome)javax.rmi.PortableRemoteObject.narrow( obj, BasicCmpHome.class); 64 assertNotNull("The EJBHome is null", ejbHome); 65 } catch (Exception e){ 66 fail("Received Exception "+e.getClass()+ " : "+e.getMessage()); 67 } 68 } 69 70 75 76 } 77 | Popular Tags |