protected void initializeJMX(final ServiceBeanContext context) throws Exception {
ObjectName objectName = createObjectName(context);
MBeanServer mbeanServer = org.rioproject.impl.jmx.MBeanServerFactory.getMBeanServer();
registerMBean(objectName, mbeanServer);
//translate events to notifications
slaThresholdEventAdapter = new SLAThresholdEventAdapter(objectName, getNotificationBroadcasterSupport());
register(SLAThresholdEvent.getEventDescriptor(), slaThresholdEventAdapter, null, Long.MAX_VALUE);
//register notification info
mbeanNoticationInfoList.add(slaThresholdEventAdapter.getNotificationInfo());
if(context.getServiceElement().forkService() &&
System.getProperty(Constants.SERVICE_BEAN_EXEC_NAME)!=null) {