/** * Main init method * * @param config The ServletConfig * @throws ServletException */ @Override public void init(ServletConfig config) throws ServletException { // prevent this method from being called more than once per instance initCalled = true; super.init(config); try { this.servletConfig = config; ServletContext servletContext = servletConfig.getServletContext(); this.configContext = (ConfigurationContext) servletContext.getAttribute(CONFIGURATION_CONTEXT); if(configContext == null){ configContext = initConfigContext(config); config.getServletContext().setAttribute(CONFIGURATION_CONTEXT, configContext); } axisConfiguration = configContext.getAxisConfiguration(); initTransports(); initGetRequestProcessors(config); initParams(); } catch (Exception e) { throw new ServletException(e); } }
/** * Main init method * * @param config The ServletConfig * @throws ServletException */ @Override public void init(ServletConfig config) throws ServletException { // prevent this method from being called more than once per instance initCalled = true; super.init(config); try { this.servletConfig = config; ServletContext servletContext = servletConfig.getServletContext(); this.configContext = (ConfigurationContext) servletContext.getAttribute(CONFIGURATION_CONTEXT); if(configContext == null){ configContext = initConfigContext(config); config.getServletContext().setAttribute(CONFIGURATION_CONTEXT, configContext); } axisConfiguration = configContext.getAxisConfiguration(); initTransports(); initGetRequestProcessors(config); initParams(); } catch (Exception e) { throw new ServletException(e); } }