obj = ctx.lookup("RSASignSession");
obj = ctx.lookup("CAAdminSession"); ICAAdminSessionHome cahome = (ICAAdminSessionHome) javax.rmi.PortableRemoteObject.narrow(obj, ICAAdminSessionHome.class); ICAAdminSessionRemote casession = cahome.create(); Collection caids = casession.getAvailableCAs(admin); Iterator iter = caids.iterator(); if (iter.hasNext()) { caid = ((Integer)iter.next()).intValue(); } else { assertTrue("No active CA! Must have at least one active CA to run tests!", false); }
    protected void setUp() throws Exception {        log.debug(">setUp()");        ctx = getInitialContext();        Object obj = ctx.lookup("UserAdminSession");                home = (IUserAdminSessionHome) javax.rmi.PortableRemoteObject.narrow(obj, IUserAdminSessionHome.class);        obj = ctx.lookup("RSASignSession");                log.debug("<setUp()");    }