return true;
}
appLoader.setCascade(cascade);
appLoader.setLoadUnloadAction(loadUnloadAction);
Application app = appLoader.getApplication();
if (handlePreUnloadAction) {
// set jsr77 state to STOPPING
try {
appLoader.setState(StateManageable.STOPPING_STATE);
} catch (MBeanException mbe) {
_logger.log(Level.WARNING,
"core.error_while_setting_jsr77_state",mbe);
}
RoleMapper.removeRoleMapper(app.getRoleMapper().getName());
if (jsr77) {
//delete jsr77 mbean
try {
appLoader.deleteLeafAndRootMBeans();
} catch (MBeanException mbe) {
_logger.log(Level.WARNING,
"core.error_while_deleting_jsr77_leaf_and_root_mbeans",mbe);
}
} else {
// set jsr77 state STOPPED
try {
appLoader.setState(StateManageable.STOPPED_STATE);
} catch (MBeanException mbe) {
_logger.log(Level.WARNING,
"core.error_while_setting_jsr77_state",mbe);
}
}
}
boolean undeployed = appLoader.unload(jsr77);
if (loadUnloadAction == Constants.UNLOAD_REST) {
return undeployed;
}
if (undeployed) {
// since web modules are loaded separately,
// at this point we can only claim ejbs to be
// loaded successfully
if (app.getEjbComponentCount() > 0) {
_logger.log(Level.INFO,
"core.application_unloaded_ejb", appID);
}
} else {
_logger.log(Level.INFO,