/** * Stop the proxy service * @param synCfg the synapse configuration */ public void stop(SynapseConfiguration synCfg) { AxisConfiguration axisConfig = synCfg.getAxisConfiguration(); if (axisConfig != null) { AxisService as = axisConfig.getServiceForActivation(this.getName()); //If an active AxisService is found if (as != null) { if (as.isActive()) { as.setActive(false); } axisConfig.notifyObservers(new AxisEvent(AxisEvent.SERVICE_STOP, as), as); } this.setRunning(false); auditInfo("Stopped the proxy service : " + name); } else { auditWarn("Unable to stop proxy service : " + name + ". Couldn't access Axis configuration"); } }
this.setRunning(true); } catch (AxisFault axisFault) { try {
this.setRunning(true); } catch (AxisFault axisFault) { try {
/** * Stop the proxy service * @param synCfg the synapse configuration */ public void stop(SynapseConfiguration synCfg) { AxisConfiguration axisConfig = synCfg.getAxisConfiguration(); if (axisConfig != null) { if (targetInLineInSequence != null) { targetInLineInSequence.destroy(); } if (targetInLineOutSequence != null) { targetInLineOutSequence.destroy(); } if (targetInLineFaultSequence != null) { targetInLineFaultSequence.destroy(); } AxisService as = axisConfig.getServiceForActivation(this.getName()); if (as != null && as.isActive()) { as.setActive(false); axisConfig.notifyObservers(new AxisEvent(AxisEvent.SERVICE_STOP, as), as); } this.setRunning(false); auditInfo("Stopped the proxy service : " + name); } else { auditWarn("Unable to stop proxy service : " + name + ". Couldn't access Axis configuration"); } }
as.setActive(true); axisConfig.notifyObservers(new AxisEvent(AxisEvent.SERVICE_START, as), as); this.setRunning(true); auditInfo("Started the proxy service : " + name); } else {
as.setActive(true); axisConfig.notifyObservers(new AxisEvent(AxisEvent.SERVICE_START, as), as); this.setRunning(true); auditInfo("Started the proxy service : " + name); } else {