// ignore
}
//***********************************
}
EventStack stack = EventContext.getEventStackFromThreadLocal();
List newEventList = stack.getEvents();
newEventList.addAll(eventList);
boolean requiresRestart = false;
Iterator iter = newEventList.iterator();
while (iter.hasNext()) {
AdminEvent event = (AdminEvent)iter.next();
if (_logger.isLoggable(Level.FINEST)) {
_logger.log(Level.FINEST, "mbean.event_sent",
event.getEventInfo());
} else {
_logger.log(Level.INFO, "mbean.send_event", event.toString());
}
AdminEventResult result=AdminEventMulticaster.multicastEvent(event);
_logger.log(Level.FINE, "mbean.event_res", result.getResultCode());
_logger.log(Level.FINEST, "mbean.event_reply",
result.getAllMessagesAsString());
if (!AdminEventResult.SUCCESS.equals(result.getResultCode())) {
requiresRestart = true;
cache.setRestartNeeded(true);
// if there was an error in the listener, admin event
// multicaster already sets the restart required to true
//_logger.log(Level.INFO, "mbean.notif_failed");
}
}
ServerContext svcCtx = ApplicationServer.getServerContext();
PluggableFeatureFactory featureFactory = null;
if (svcCtx != null) {
featureFactory = svcCtx.getPluggableFeatureFactory();
// see if there were any non reconfigurabled changes
NotificationFactory nFactory =
featureFactory.getNotificationFactory();
RestartEventHelper helper = nFactory.createRestartEventHelper();
helper.setRestartRequiredForTarget(context, changeList);
}
stack.resetEvents();
return;
}