in jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java [129:158]
public ObjectName install() throws JBIException {
try {
if (isModified) {
if (isInstalled()) {
throw new DeploymentException("Component is already installed");
}
initBootstrap();
if (bootstrap != null) {
bootstrap.onInstall();
}
try {
ObjectName name = initComponent();
cleanUpBootstrap();
installationContext.setInstall(false);
postInstall();
return name;
} catch (Exception e) {
cleanUpBootstrap();
throw e;
}
} else {
ObjectName name = initComponent();
postInstall();
return name;
}
} catch (Exception e) {
logger.error(e.getMessage());
throw new JBIException(e);
}
}