if (!(mgr instanceof JMXDeploymentManager)) {
throw new DeploymentSyntaxException(
"Target DeploymentManager is not a Geronimo one. \n" +
"Cannot perform in-place deployment.");
}
JMXDeploymentManager jmxMgr = (JMXDeploymentManager) mgr;
try {
jmxMgr.setInPlace(true);
return mgr.distribute(tlist, module, plan);
} finally {
jmxMgr.setInPlace(false);
}
} else {
return mgr.distribute(tlist, module, plan);
}
}