Object obj = ctx.lookup("MyStatefulBean/home");
MyStatefulHome home = (MyStatefulHome) PortableRemoteObject.narrow(obj, MyStatefulHome.class);
//MyStateful bean1 = (MyStateful) PortableRemoteObject.narrow(obj, MyStateful.class);
MyStateful bean1 = home.create();
bean1.setName("bean1");
String response = bean1.sayHello();
assertEquals("Hello bean1", response);
bean1.remove();
}
public void testGetEJBHome() throws Exception