[nanocontainer-scm] [jira] Created: (NANO-129) Prevent re-registering mbeans

"Gr?gory Joseph (JIRA)" <jira-yCVjj/[email protected]> Mon, 14 Mar 2005 09:27:31 -0500 (EST)
Newsgroups gmane.comp.java.nanocontainer.cvs
Message-ID <[email protected]>
Prevent re-registering mbeans
-----------------------------

         Key: NANO-129
         URL: http://jira.codehaus.org/browse/NANO-129
     Project: NanoContainer
        Type: Improvement
  Components: jmx =20
    Versions: 1.0-beta-5   =20
    Reporter: Gr=E9gory Joseph
 Attachments: jmx-prevent-double-registration.patch

Currently, the JMXVisitor will register mbeans no matter if they are alread=
y registered in the MBeanServer or not.

Here's a patch that first unregisters the ObjectName if it's already regist=
ered, and then registers it. (This, as opposed to ignoring the registration=
 only if not yet registered, probably avoids stale instances of the mbean t=
o lie in the vm)

--=20
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira