protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ServletInputStream in = request.getInputStream(); ServletOutputStream out = response.getOutputStream(); try { ejbServer.service(in, out); } catch (ServiceException e) { throw new ServletException("ServerService error: " + ejbServer.getClass().getName() + " -- " + e.getMessage(), e); } } }
protected void service(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { if (!activated) { response.getWriter().write(""); return; } final ServletInputStream in = request.getInputStream(); final ServletOutputStream out = response.getOutputStream(); try { RequestInfos.initRequestInfo(request); ejbServer.service(in, out); } catch (final ServiceException e) { throw new ServletException("ServerService error: " + ejbServer.getClass().getName() + " -- " + e.getMessage(), e); } finally { RequestInfos.clearRequestInfo(); } } }
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if (!activated) { response.getWriter().write(""); return; } ServletInputStream in = request.getInputStream(); ServletOutputStream out = response.getOutputStream(); try { RequestInfos.initRequestInfo(request); ejbServer.service(in, out); } catch (ServiceException e) { throw new ServletException("ServerService error: " + ejbServer.getClass().getName() + " -- " + e.getMessage(), e); } finally { RequestInfos.clearRequestInfo(); } } }
service.stop(); } catch (ServiceException e) { logger.fatal("Service Shutdown Failed: " + service.getName() + ". Exception: " + e.getMessage(), e);
daemons[i].stop(); } catch (ServiceException e) { logger.fatal("Service Shutdown Failed: "+daemons[i].getName()+". Exception: "+e.getMessage(), e);