protected void setUp() throws Exception { super.setUp(); Object obj = initialContext.lookup("client/tests/entity/cmp/BasicCmpHome"); ejbHome = (BasicCmpHome) javax.rmi.PortableRemoteObject.narrow(obj, BasicCmpHome.class); ejbObject = ejbHome.createObject("Fifth Bean"); ejbHandle = ejbObject.getHandle(); }
protected void tearDown() throws Exception { if (ejbObject != null) ejbObject.remove(); super.tearDown(); }