1 45 package org.openejb.test.stateful; 46 47 48 54 public class StatefulJndiTests extends BasicStatefulTestClient{ 55 56 public StatefulJndiTests(){ 57 super("JNDI."); 58 } 59 60 public void test01_Jndi_lookupHome(){ 61 try{ 62 Object obj = initialContext.lookup("client/tests/stateful/BasicStatefulHome"); 63 ejbHome = (BasicStatefulHome)javax.rmi.PortableRemoteObject.narrow( obj, BasicStatefulHome.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 |