obj = PortableRemoteObject.narrow(obj, SessionFacadeHome.class);
SessionFacadeHome home = (SessionFacadeHome) obj;
log.debug("Found PublicSessionFacade home");
SessionFacade bean = home.create();
log.debug("Created PublicSessionFacade");
log.debug("Bean.callEcho('testJBAS1852') -> " + bean.callEcho("testJBAS1852"));
bean.remove();
}
/**
* Test that an MDB with a run-as identity is able to access secure EJBs that require the identity.