@Override public void init() throws ServletException { super.init(); ApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()); ConfigService configService = (ConfigService)context.getBean("web.config"); // retrieve the remote configuration this.config = (RemoteConfigElement)configService.getConfig("Remote").getConfigElement("remote"); // retrieve the connector service this.connectorService = (ConnectorService) context.getBean("connector.service"); }
@Override public void init() throws ServletException { super.init(); ApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()); ConfigService configService = (ConfigService)context.getBean("web.config"); // retrieve the remote configuration this.config = (RemoteConfigElement)configService.getConfig("Remote").getConfigElement("remote"); // retrieve the connector service this.connectorService = (ConnectorService) context.getBean("connector.service"); }
@Override public void init() throws ServletException { super.init(); ApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()); ConfigService configService = (ConfigService)context.getBean("web.config"); // retrieve the remote configuration this.config = (RemoteConfigElement)configService.getConfig("Remote").getConfigElement("remote"); // retrieve the connector service this.connectorService = (ConnectorService) context.getBean("connector.service"); }