Details
-
Type: Improvement
-
Status: Resolved
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.0-beta-5
-
Fix Version/s: None
-
Component/s: jmx
-
Labels:None
-
Number of attachments :
Description
Currently, the JMXVisitor will register mbeans no matter if they are already registered in the MBeanServer or not.
Here's a patch that first unregisters the ObjectName if it's already registered, and then registers it. (This, as opposed to ignoring the registration only if not yet registered, probably avoids stale instances of the mbean to lie in the vm)
Activity
Jörg Schaible
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Joerg Schaible [ joehni ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Won't Fix [ 2 ] |
I explicitly removed the check, if an object is already registered. IMHO it is up to the developer to ensure, that each MBean is only registered one and not the visitor's task.