public void contextInitialized(ServletContextEvent servletContextEvent) { try { AiravataUtils.setExecutionAsServer(); ServletContext servletContext = servletContextEvent.getServletContext(); String gatewayID = ServerSettings.getSystemUserGateway(); String user = ServerSettings.getSystemUser(); Gateway gateway = new Gateway(gatewayID); servletContext.setAttribute(RestServicesConstants.GATEWAY, gateway); servletContext.setAttribute(RestServicesConstants.AIRAVATA_USER, user); servletContext.setAttribute( RestServicesConstants.AIRAVATA_REGISTRY_POOL,new RegistryInstancesPool(100)); } catch (Exception e) { e.printStackTrace(); } }
public void startUp(ConfigurationContext configctx, AxisService service) { AiravataUtils.setExecutionAsServer(); AxisConfiguration config = null; List<Phase> phases = null; config = service.getAxisConfiguration(); phases = config.getInFlowPhases(); /* * Add dispatcher and security handler to inFlowPhases */ for (Iterator<Phase> iterator = phases.iterator(); iterator.hasNext();) { Phase phase = (Phase) iterator.next(); if ("Security".equals(phase.getPhaseName())) { phase.addHandler(new MyProxySecurityHandler()); phase.addHandler(new AmazonSecurityHandler()); } else if ("Dispatch".equals(phase.getPhaseName())) { phase.addHandler(new GFacURIBasedDispatcher(), 0); } } initializeRepository(configctx); }
public void startUp(ConfigurationContext configContext, AxisService axisService) { AiravataUtils.setExecutionAsServer(); Boolean inited = (Boolean) configContext.getProperty(WsmgCommonConstants.BROKER_INITED);
public void startUp(ConfigurationContext configurationcontext, AxisService axisservice) { AiravataUtils.setExecutionAsServer(); Axis2Utils.overrideAddressingPhaseHander(configurationcontext, new StoreMessageHandler());
AiravataUtils.setExecutionAsServer(); String protocol = ServerSettings.isEnableHttps() ? "https" : "http"; BetterTomcat tomcat = new BetterTomcat(Integer.parseInt(ServerSettings.getTomcatPort(protocol)));