StopServiceAssemblyTask stopTask = new StopServiceAssemblyTask();
initializeJbiTask(stopTask);
stopTask.setName(jbiDeployable.getName());
stopTask.execute();
ShutDownServiceAssemblyTask shutdownTask = new ShutDownServiceAssemblyTask();
initializeJbiTask(shutdownTask);
shutdownTask.setName(jbiDeployable.getName());
shutdownTask.execute();
}
if (JBI_COMPONENT.equals(jbiDeployable.getType())) {
StopComponentTask stopTask = new StopComponentTask();
initializeJbiTask(stopTask);
stopTask.setName(jbiDeployable.getName());
stopTask.execute();
ShutDownComponentTask shutdownTask = new ShutDownComponentTask();
initializeJbiTask(shutdownTask);
shutdownTask.setName(jbiDeployable.getName());
shutdownTask.execute();
}
}