{
list.add(new ObjectName(alerts[i]));
}
monitor.setAlertListeners(list);
mbeanServer.registerMBean(monitor, new ObjectName("jboss.monitor:name=" + monitorName));
monitor.create();
monitor.start();
}
catch (Exception ex)
{
error("Failed to create non-persisted monitor: " + ex.toString(), req, resp);