* @return True means requires restart.
*/
public boolean applyConfigChanges() throws ServerInstanceException
{
try {
InstanceEnvironment ie = new InstanceEnvironment(
ServerManager.ADMINSERVER_ID);
// Force write of server.xml changes because the check to ensure
// that manual edits are not lost (the method canApplyConfigChanges)
// is already invoked from MBeanServer just before invoking this
// (applyConfigChanges) method.
//ie.applyServerXmlChanges(true);
initDelegate();
ConfigContext ctx = mDelegate.getConfigContext(
ServerManager.ADMINSERVER_ID);
ctx.resetConfigChangeList();
mRestartNeeded = true;
/* New for 8.0 - temporary - gen server.xml b4 notif */
/* This call most likely goes away */
if (ManagedServerInstance.PORT_DOMAIN_TO_SERVER) {
final String domainXMLPath = ie.getConfigFilePath();
final String serverXMLPath = System.getProperty(Constants.IAS_ROOT)
+ "/"
+ ie.getName()
+ "/config/"
+ ie.kServerXMLFileName;
new Domain2ServerTransformer(domainXMLPath, serverXMLPath).transform();
}
/* New for 8.0 - temporary - gen server.xml b4 notif */