} catch (Exception exception) {
AbstractSessionLog.getLog().log(SessionLog.WARNING, "problem_registering_mbean", exception);
}
MBeanDevelopmentServices mbean = new MBeanDevelopmentServices((Session)getDatabaseSession());
ObjectInstance info = null;
try {
info = mBeanServerRuntime.registerMBean(mbean, name);
} catch(InstanceAlreadyExistsException iaee) {
AbstractSessionLog.getLog().log(SessionLog.WARNING, "problem_registering_mbean", iaee);
} catch (MBeanRegistrationException registrationProblem) {
AbstractSessionLog.getLog().log(SessionLog.WARNING, "problem_registering_mbean", registrationProblem);
} catch (Exception e) {
AbstractSessionLog.getLog().log(SessionLog.WARNING, "problem_registering_mbean", e);
}
AbstractSessionLog.getLog().log(SessionLog.FINEST, "registered_mbean", info);
}
if (shouldRegisterRuntimeBean) {
try {
name = new ObjectName(JMX_REGISTRATION_PREFIX + "Session(" + sessionName + ")");
} catch (MalformedObjectNameException mne) {
AbstractSessionLog.getLog().log(SessionLog.WARNING, "problem_registering_mbean", mne);
} catch (Exception exception) {
AbstractSessionLog.getLog().log(SessionLog.WARNING, "problem_registering_mbean", exception);
}
MBeanWebLogicRuntimeServices runtimeServices = new MBeanWebLogicRuntimeServices((AbstractSession)getDatabaseSession());
ObjectInstance runtimeInstance = null;
try {
runtimeInstance = mBeanServerRuntime.registerMBean(runtimeServices, name);
runtimeServicesMBean = runtimeServices;
} catch(InstanceAlreadyExistsException iaee) {
AbstractSessionLog.getLog().log(SessionLog.WARNING, "problem_registering_mbean", iaee);