public static ConfigurationContext createConfigurationContextFromURIs( URL axis2xml, URL repositoy) throws AxisFault { return createConfigurationContext(new URLBasedAxisConfigurator(axis2xml, repositoy)); }
public static ConfigurationContext createConfigurationContextFromURIs( URL axis2xml, URL repositoy) throws AxisFault { return createConfigurationContext(new URLBasedAxisConfigurator(axis2xml, repositoy)); }
private boolean configureAxis() throws Exception { log.info("configuring axis"); URL conf = new File(resourcesDir, "axis/conf/axis2.xml").toURI().toURL(); URL repo = new File(resourcesDir, "axis/").toURI().toURL(); AxisConfigurator ac = new AxisConfiguratorImpl(conf, repo); configurationContext = ConfigurationContextFactory.createConfigurationContext(ac); new ListenerManager().init(configurationContext); return true; }
String path, String axis2xml) throws AxisFault { return createConfigurationContext(new FileSystemConfigurator(path, axis2xml));
String path, String axis2xml) throws AxisFault { return createConfigurationContext(new FileSystemConfigurator(path, axis2xml));
public UtilsTransportServer() throws AxisFault { cfgCtx = ConfigurationContextFactory. createConfigurationContext(new CustomAxisConfigurator()); // create listener manager listnMgr = new ListenerManager(); cfgCtx.setTransportManager(listnMgr); }
public UtilsTransportServer() throws AxisFault { cfgCtx = ConfigurationContextFactory. createConfigurationContext(new CustomAxisConfigurator()); // create listener manager listnMgr = new ListenerManager(); cfgCtx.setTransportManager(listnMgr); }
/** * Create a ConfigurationContext from the specified configurator * * @param configurator */ public ClientConfigurationFactory(AxisConfigurator configurator) { try { configContext = ConfigurationContextFactory.createConfigurationContext(configurator); } catch (AxisFault e) { throw ExceptionFactory.makeWebServiceException(Messages.getMessage("clientConfigCtxtErr", e.getMessage())); } }
public UtilsTransportServer() throws AxisFault { cfgCtx = ConfigurationContextFactory. createConfigurationContext(new CustomAxisConfigurator()); // create listener manager listnMgr = new ListenerManager(); cfgCtx.setTransportManager(listnMgr); }
/** * Initialize the Axis configuration context * * @param config Servlet configuration * @return ConfigurationContext * @throws ServletException */ protected ConfigurationContext initConfigContext(ServletConfig config) throws ServletException { try { ConfigurationContext configContext = ConfigurationContextFactory .createConfigurationContext(new WarBasedAxisConfigurator(config)); configContext.setProperty(Constants.CONTAINER_MANAGED, Constants.VALUE_TRUE); return configContext; } catch (Exception e) { log.info(e); throw new ServletException(e); } }
/** * Create a ConfigurationContext from the specified configurator * * @param configurator */ public ClientConfigurationFactory(AxisConfigurator configurator) { try { configContext = ConfigurationContextFactory.createConfigurationContext(configurator); } catch (AxisFault e) { throw ExceptionFactory.makeWebServiceException(Messages.getMessage("clientConfigCtxtErr", e.getMessage())); } }
/** * Initialize the Axis configuration context * * @param config Servlet configuration * @return ConfigurationContext * @throws ServletException */ protected ConfigurationContext initConfigContext(ServletConfig config) throws ServletException { try { ConfigurationContext configContext = ConfigurationContextFactory .createConfigurationContext(new WarBasedAxisConfigurator(config)); configContext.setProperty(Constants.CONTAINER_MANAGED, Constants.VALUE_TRUE); return configContext; } catch (Exception e) { log.info(e); throw new ServletException(e); } }
public synchronized void startConfigurationContext(Dictionary dictionary) throws AxisFault { AxisConfigurator configurator = new OSGiServerConfigurator(context); configCtx = ConfigurationContextFactory.createConfigurationContext(configurator); ListenerManager listenerManager = new ListenerManager(); listenerManager.init(configCtx); listenerManager.start(); }
@Setup @SuppressWarnings("unused") private void setUp(TransportDescriptionFactory tdf, AxisTestClientContextConfigurator[] configurators) throws Exception { cfgCtx = ConfigurationContextFactory.createConfigurationContext(new CustomAxisConfigurator()); AxisConfiguration axisCfg = cfgCtx.getAxisConfiguration();
@Setup @SuppressWarnings("unused") private void setUp(TransportDescriptionFactory tdf, AxisTestClientContextConfigurator[] configurators) throws Exception { cfgCtx = ConfigurationContextFactory.createConfigurationContext(new CustomAxisConfigurator()); AxisConfiguration axisCfg = cfgCtx.getAxisConfiguration();
@Setup @SuppressWarnings("unused") private void setUp(TransportDescriptionFactory tdf, AxisTestClientContextConfigurator[] configurators) throws Exception { cfgCtx = ConfigurationContextFactory.createConfigurationContext(new CustomAxisConfigurator()); AxisConfiguration axisCfg = cfgCtx.getAxisConfiguration();