/** * Remove a service group * * @param groupName * * @throws AxisFault */ public void removeServiceGroup(String groupName) throws AxisFault { AxisServiceGroup asg = getAxisConfig().getServiceGroup(groupName); if (asg == null) { throw new AxisFault("Invalid service group name: " + groupName); } getAxisConfig().removeServiceGroup(groupName); }
.removeServiceGroup(axisServiceGroup.getServiceGroupName()); } catch (AxisFault e) { String msg = "Error while removing the service group";
/** * Release the AxisService objects associated with this EndpointDescription. Note that * this should only be called by the ServiceDescription that owns this EndpointDescrition. * * @param configurationContext The Axis2 ConfigurationContext holding the AxisConfiguration * from which the AxisServices should be removed. */ void releaseResources(ConfigurationContext configurationContext) { if (configurationContext != null) { AxisConfiguration axisConfig = configurationContext.getAxisConfiguration(); AxisService axisService = getAxisService(); AxisServiceGroup axisServiceGroup = axisService.getAxisServiceGroup(); try { axisConfig.removeServiceGroup(axisServiceGroup.getServiceGroupName()); } catch (AxisFault e) { if (log.isDebugEnabled()) { log.debug("EndpointDescriptionImpl release resources caught exception which it is ignoring", e); } } } } }
/** * Release the AxisService objects associated with this EndpointDescription. Note that * this should only be called by the ServiceDescription that owns this EndpointDescrition. * * @param configurationContext The Axis2 ConfigurationContext holding the AxisConfiguration * from which the AxisServices should be removed. */ void releaseResources(ConfigurationContext configurationContext) { if (configurationContext != null) { AxisConfiguration axisConfig = configurationContext.getAxisConfiguration(); AxisService axisService = getAxisService(); AxisServiceGroup axisServiceGroup = axisService.getAxisServiceGroup(); try { axisConfig.removeServiceGroup(axisServiceGroup.getServiceGroupName()); } catch (AxisFault e) { if (log.isDebugEnabled()) { log.debug("EndpointDescriptionImpl release resources caught exception which it is ignoring", e); } } } } }
axisConfig.removeService((String) iterator.next()); axisConfig.removeServiceGroup(asGroup.getServiceGroupName());
axisConfig.removeServiceGroup(axisServiceName);
/** * Clean up configuration created with this client. Call this method when you're done using the * client, in order to discard any associated resources. * * @throws AxisFault in case of error */ public void cleanup() throws AxisFault { // if a configuration context was created for this client there'll also // be a service group, so discard that if (!createConfigCtx) { String serviceGroupName = axisService.getAxisServiceGroup().getServiceGroupName(); AxisConfiguration axisConfiguration = configContext.getAxisConfiguration(); AxisServiceGroup asg = axisConfiguration.getServiceGroup(serviceGroupName); if ((asg != null) && removeAxisService) { axisConfiguration.removeServiceGroup(serviceGroupName); } } else { configContext.terminate(); } }
try { AxisServiceGroup serviceGroup = configCtx.getAxisConfiguration().removeServiceGroup(className); configCtx.removeServiceGroupContext(serviceGroup); log.info(Messages.getMessage(DeploymentErrorMsgs.SERVICE_REMOVED, try { AxisServiceGroup serviceGroup = configCtx.getAxisConfiguration().removeServiceGroup(fileName); configCtx.removeServiceGroupContext(serviceGroup); log.info(Messages.getMessage(DeploymentErrorMsgs.SERVICE_REMOVED,
/** * Clean up configuration created with this client. Call this method when you're done using the * client, in order to discard any associated resources. * * @throws AxisFault in case of error */ public void cleanup() throws AxisFault { // if a configuration context was created for this client there'll also // be a service group, so discard that if (!createConfigCtx) { String serviceGroupName = axisService.getAxisServiceGroup().getServiceGroupName(); AxisConfiguration axisConfiguration = configContext.getAxisConfiguration(); AxisServiceGroup asg = axisConfiguration.getServiceGroup(serviceGroupName); if ((asg != null) && removeAxisService) { axisConfiguration.removeServiceGroup(serviceGroupName); } } else { configContext.terminate(); } }
axisConfig.removeServiceGroup(serviceGroup.getServiceGroupName()); } catch (Exception e) { throw new ClusteringFault(e);
try { AxisServiceGroup serviceGroup = configCtx.getAxisConfiguration().removeServiceGroup(className); configCtx.removeServiceGroupContext(serviceGroup); log.info(Messages.getMessage(DeploymentErrorMsgs.SERVICE_REMOVED, try { AxisServiceGroup serviceGroup = configCtx.getAxisConfiguration().removeServiceGroup(fileName); configCtx.removeServiceGroupContext(serviceGroup); log.info(Messages.getMessage(DeploymentErrorMsgs.SERVICE_REMOVED,
axisConfig.removeServiceGroup(serviceGroup.getServiceGroupName()); } catch (Exception e) { throw new ClusteringFault(e);
fileName = serviceHierarchy + fileName; AxisServiceGroup serviceGroup = axisConfig.removeServiceGroup(fileName);
axisConfig.removeServiceGroup(serviceName); axisConfig.removeService(serviceName); } else {
axisContext.getAxisConfiguration().removeServiceGroup( this.axisService.getName()); this.axisService.getAxisConfiguration().removeService( this.axisService.getName());
fileName = serviceHierarchy + fileName; AxisServiceGroup serviceGroup = axisConfig.removeServiceGroup(fileName);
this.axisConfig.removeServiceGroup(serviceGroup.getServiceGroupName());