debug(">ejbCreate()"); caadminHome = (ICAAdminSessionLocalHome)lookup("java:comp/env/ejb/CAAdminSessionLocal"); storeHome = (ICertificateStoreSessionLocalHome)lookup("java:comp/env/ejb/CertificateStoreSessionLocal"); certHome = (CertificateDataLocalHome)lookup("java:comp/env/ejb/CertificateDataLocal"); signHome = (ISignSessionLocalHome)lookup("java:comp/env/ejb/SignSessionLocal");  try{ ILogSessionLocalHome logsessionhome = (ILogSessionLocalHome) lookup(ILogSessionLocalHome.COMP_NAME,ILogSessionLocalHome.class); logsession = logsessionhome.create(); }catch(Exception e){ throw new EJBException(e); }  debug("<ejbCreate()");
caadminHome = (ICAAdminSessionLocalHome)getLocator().getLocalHome(ICAAdminSessionLocalHome.COMP_NAME); storeHome = (ICertificateStoreSessionLocalHome)getLocator().getLocalHome(ICertificateStoreSessionLocalHome.COMP_NAME); certHome = (CertificateDataLocalHome)getLocator().getLocalHome(CertificateDataLocalHome.COMP_NAME); signHome = (ISignSessionLocalHome)getLocator().getLocalHome(ISignSessionLocalHome.COMP_NAME); ILogSessionLocalHome logsessionhome = (ILogSessionLocalHome) getLocator().getLocalHome(ILogSessionLocalHome.COMP_NAME); logsession = logsessionhome.create();
    public void ejbCreate () throws CreateException {        debug(">ejbCreate()");        caadminHome = (ICAAdminSessionLocalHome)lookup("java:comp/env/ejb/CAAdminSessionLocal");        storeHome = (ICertificateStoreSessionLocalHome)lookup("java:comp/env/ejb/CertificateStoreSessionLocal");        certHome = (CertificateDataLocalHome)lookup("java:comp/env/ejb/CertificateDataLocal");        signHome = (ISignSessionLocalHome)lookup("java:comp/env/ejb/SignSessionLocal");        try{          ILogSessionLocalHome logsessionhome = (ILogSessionLocalHome) lookup(ILogSessionLocalHome.COMP_NAME,ILogSessionLocalHome.class);                 logsession = logsessionhome.create();        }catch(Exception e){          throw new EJBException(e);        }        debug("<ejbCreate()");    }