[nanocontainer-scm] [jira] Commented: (NANO-129) Prevent re-registering mbeans
"Joerg Schaible (JIRA)" <jira-yCVjj/[email protected]> Mon, 14 Mar 2005 10:27:31 -0500 (EST)
| Newsgroups | gmane.comp.java.nanocontainer.cvs |
|---|---|
| Message-ID | <[email protected]> |
[ http://jira.codehaus.org/browse/NANO-129?page=3Dcomments#action_3089=
9 ]
=20
Joerg Schaible commented on NANO-129:
-------------------------------------
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 a=
nd not the visitor's task.
> Prevent re-registering mbeans
> -----------------------------
>
> Key: NANO-129
> URL: http://jira.codehaus.org/browse/NANO-129
> Project: NanoContainer
> Type: Improvement
> Components: jmx
> Versions: 1.0-beta-5
> Reporter: Gr=E9gory Joseph
> Attachments: jmx-prevent-double-registration.patch
>
>
> Currently, the JMXVisitor will register mbeans no matter if they are alre=
ady registered in the MBeanServer or not.
> Here's a patch that first unregisters the ObjectName if it's already regi=
stered, and then registers it. (This, as opposed to ignoring the registrati=
on only if not yet registered, probably avoids stale instances of the mbean=
to 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