Skip to main content
Jump to: navigation, search


< EclipseLink‎ | DesignDocs
Revision as of 08:50, 24 June 2008 by (Talk | contribs) (Design / Functionality)

Design Specification: JMX MBean Support


Document History

Date Author Version Description & Notes
2008-06-23 Michael O 0.1 Starting Draft

Project overview

This enhancement will add JMX MBean support to EclipseLink 1.0 by exposing select runtime and development attributes and methods to custom JMX client code or JConsole.


Based on JMX 1.2 and JMX Remote API 1.0


ELUG Documentation JMX MBeans in WebLogic 10


  • R1: Enable JMX MBean Support for WebLogic
  • R2: Enable JMX MBean support for generic J2EE servers
  • R3: MBeans have a 1:1 relationship with their session (multiple EARs=multiple beans)
  • R4: Clients can disable post login MBean registration (via SessionCustomizer)
  • R5: Clients can manage their own registration of EclipseLink MBeans (via ApplicationLifecycleListener)

Design Constraints

  • C1: MBeans are not available until the first login of a server application (lazy-loaded)
  • C2:

Use Cases

  • UC1: EclipseLink managed MBean registration
  • UC2: Application managed MBean registration
  • UC3: No MBean registration

Design / Functionality

EclipseLink Managed Lazy Registration

By default MBean registration is enabled for WebLogic. This registration occurs as a post step during the first login to the session.

Application Managed Lazy Registration

Disabling MBean Registration

If MBean registration is not required, or the application will be handling registration then you may disable automatic registration at the first login by setting up the following.

WebLogic ApplicationLifecycleListener Example

Here the application can manage registration/deregistration of the MBeans by using a SessionCustomizer in conjunction with a listener on either a servlet or session bean within the JEE application.

  • SessionCustomizer
  • Listener

You must configure the EclipseLink Mbeans in the EAR/meta-inf via a weblogic-application.xml descriptor entry.

<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"  "">
<weblogic-application xmlns="">


A formal JMX J2SE client test suite is required.



Config files

Documentation - move and rewrite for WebLogic - WebLogic replaces OC4J in "Check this field to configure the EclipseLink runtime to enable the deployment of a JMX MBean that allows monitoring of the EclipseLink session. Currently, this is only supported for OC4J."

Open Issues

Issue # Owner Description / Notes


Issue # Description / Notes Decision

Future Considerations

During the research for this project the following items were identified as out of scope but are captured here as potential future enhancements. If agreed upon during the review process these should be logged in the bug system.

  • OC4J, WebSphere, JBoss, Geronimo specific MBean support

Back to the top