ILogSessionHome logsessionhome = (ILogSessionHome) lookup(ILogSessionHome.COMP_NAME, ILogSessionHome.class);
ILogSessionHome logsessionhome = (ILogSessionHome) getLocator().getLocalHome(ILogSessionHome.COMP_NAME);
    public void ejbCreate() throws CreateException {        debug(">ejbCreate()");        // Get the URL from the environment from deployment descriptor        remoteurl = (String) lookup("java:comp/env/AuthURL", java.lang.String.class);        try {            ILogSessionHome logsessionhome = (ILogSessionHome) lookup(ILogSessionHome.COMP_NAME,                    ILogSessionHome.class);            logsession = logsessionhome.create();        } catch (Exception e) {            throw new EJBException(e);        }        debug("<ejbCreate()");    }