/** * This servlet init method sets up business logic EJBs. Servlet init method is only executed once * * @param config - default parameter * @exception ServletException */ public void init(ServletConfig config) throws ServletException { super.init(config); USFEnv.getLog().writeDebug("initializing buslogic EJB home interfaces", this, null); try { workorderdetHome = (WorkOrderDetailHome) USFEnv.ic.lookup(WORKORDERDETS_INFORMATION_EJBEAN); } catch (NamingException e) { USFEnv.getLog().writeDebug("Failed to ic.lookup Naming Exception", this, null); } }
public void init(ServletConfig config) throws ServletException { super.init(config); try { RhccInvviewHome invviewhome = (RhccInvviewHome) USFEnv.ic.lookup(RHCCINVVIEW_EJBEAN); invviewEJBean = invviewhome.create(); RhccInvgenHome invgenhome = (RhccInvgenHome) USFEnv.ic.lookup(RHCCINVGEN_EJBEAN); invgenEJBean = invgenhome.create(); } catch (NamingException e) { USFEnv.getLog().writeDebug("RhccInvviewServlet: Inside Naming Exception", this, null); } catch (CreateException e) { USFEnv.getLog().writeDebug("RhccInvviewServlet: Inside Create Exception", this, null); } catch (RemoteException e) { USFEnv.getLog().writeDebug("RhccInvviewServlet: Inside Remote Exception", this, null); } }