public void unDeploy() {
String serviceName = null;
List undeployed = new ArrayList();
for (int i = 0; i < wsToUnDeploy.size(); i++) {
try {
WSInfo wsInfo = (WSInfo)wsToUnDeploy.get(i);
// if (wsInfo.getType() == TYPE_SERVICE) {
if (isHotUpdate()) {
try {
serviceName = getAxisServiceName(wsInfo.getFileName());
if (!undeployed.contains(serviceName)) {
realAxisConfig.removeServiceGroup(serviceName);
undeployed.add(serviceName);
// TODO: need a way to also remove the ServiceGroup from the ConfigContext.applicationSessionServiceGroupContextTable
log.info(Messages.getMessage(DeploymentErrorMsgs.SERVICE_REMOVED, serviceName));
}
} catch (AxisFault axisFault) {
// May be a faulty service
realAxisConfig.removeFaultyService(serviceName);
log.debug("removeFaultyService: " + wsInfo.getFileName());
}
} else {
realAxisConfig.removeFaultyService(serviceName);
log.debug("not hotUpdate, removeFaultyService: " + wsInfo.getFileName());
}
// }
} catch (Exception e) {
log.warn(e);
}