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); }
public UtilsTransportServer() throws AxisFault { cfgCtx = ConfigurationContextFactory. createConfigurationContext(new CustomAxisConfigurator()); // create listener manager listnMgr = new ListenerManager(); cfgCtx.setTransportManager(listnMgr); }
public void destroy() throws AxisFault { stop(); this.configctx.setTransportManager(null); // need to destory all the transports not only the started ones // most of the transports create the worker pool at the init method. TransportInDescription transportInDescription; for (Object o : configctx.getAxisConfiguration().getAxisConfiguration().getTransportsIn().values()) { transportInDescription = (TransportInDescription) o; TransportListener transportListener = transportInDescription.getReceiver(); transportListener.destroy(); } this.startedTransports.clear(); this.configctx = null; }
public void destroy() throws AxisFault { stop(); this.configctx.setTransportManager(null); // need to destory all the transports not only the started ones // most of the transports create the worker pool at the init method. TransportInDescription transportInDescription; for (Object o : configctx.getAxisConfiguration().getAxisConfiguration().getTransportsIn().values()) { transportInDescription = (TransportInDescription) o; TransportListener transportListener = transportInDescription.getReceiver(); transportListener.destroy(); } this.startedTransports.clear(); this.configctx = null; }
/** * Initializes the listener manager and the defined transports in the * <code>AxisConfiguration</code> * * @param configCtx used for the initialization */ public void init(ConfigurationContext configCtx) { if (this.configctx != null) { log.warn("ConfigurationContext provided for the ListenerManager " + "initialization is null. ListenerManager will not be initialized"); return; } configCtx.setTransportManager(this); this.configctx = configCtx; // initialize all the transport listeners for (TransportInDescription transportIn : configctx.getAxisConfiguration().getTransportsIn().values()) { try { TransportListener listener = transportIn.getReceiver(); if (listener != null && startedTransports.get(transportIn.getName()) == null) { listener.init(configctx, transportIn); } } catch (Exception e) { log.error("Couldn't initialize the " + transportIn.getName() + "transport listener", e); } } }
/** * Initializes the listener manager and the defined transports in the * <code>AxisConfiguration</code> * * @param configCtx used for the initialization */ public void init(ConfigurationContext configCtx) { if (this.configctx != null) { log.warn("ConfigurationContext provided for the ListenerManager " + "initialization is null. ListenerManager will not be initialized"); return; } configCtx.setTransportManager(this); this.configctx = configCtx; // initialize all the transport listeners for (TransportInDescription transportIn : configctx.getAxisConfiguration().getTransportsIn().values()) { try { TransportListener listener = transportIn.getReceiver(); if (listener != null && startedTransports.get(transportIn.getName()) == null) { listener.init(configctx, transportIn); } } catch (Exception e) { log.error("Couldn't initialize the " + transportIn.getName() + "transport listener", e); } } }
listenerManager = new ListenerManager(); listenerManager.init(cfgCtx); cfgCtx.setTransportManager(listenerManager); listenerManager.addListener(trpInDesc, false); listenerManager.start();
listenerManager = new ListenerManager(); listenerManager.init(cfgCtx); cfgCtx.setTransportManager(listenerManager); listenerManager.addListener(trpInDesc, false); listenerManager.start();
listenerManager = new ListenerManager(); listenerManager.init(cfgCtx); cfgCtx.setTransportManager(listenerManager); listenerManager.addListener(trpInDesc, false); listenerManager.start();