cadatahome = (CADataLocalHome) lookup("java:comp/env/ejb/CADataLocal");
cadatahome = (CADataLocalHome) getLocator().getLocalHome(CADataLocalHome.COMP_NAME);
    public void ejbCreate() throws CreateException {        debug(">ejbCreate()");        try {            // Install BouncyCastle provider            CertTools.installBCProvider();            // get home interfaces to other session beans used            storeHome = (ICertificateStoreSessionLocalHome) lookup("java:comp/env/ejb/CertificateStoreSessionLocal");            authHome = (IAuthenticationSessionLocalHome) lookup("java:comp/env/ejb/AuthenticationSessionLocal");            cadatahome = (CADataLocalHome) lookup("java:comp/env/ejb/CADataLocal");            publishHome = (IPublisherSessionLocalHome) lookup("java:comp/env/ejb/PublisherSessionLocal");            // Get a decent source of random data            String randomAlgorithm = (String) lookup("java:comp/env/randomAlgorithm");            randomSource = SecureRandom.getInstance(randomAlgorithm);            SernoGenerator.setAlgorithm(randomAlgorithm);        } catch (Exception e) {            debug("Caught exception in ejbCreate(): ", e);            throw new EJBException(e);        }        debug("<ejbCreate()");    }