error("Illegal format for watch period.", req, resp);
return;
}
try
{
SnapshotRecordingMonitor monitor = new SnapshotRecordingMonitor();
monitor.setMonitorName(monitorName);
monitor.setObservedObject(oname);
monitor.setObservedAttribute(attribute);
monitor.setPeriod(timePeriod);
ObjectName sname = new ObjectName("jboss.snapshot:name=" + monitorName);
mbeanServer.registerMBean(monitor, sname);
resp.sendRedirect("/web-console/manageSnapshot.jsp?monitorObjectName=" + java.net.URLEncoder.encode(sname.toString()));
}
catch (Exception ex)