User: ejort
Date: 02/03/16 04:38:52
Modified: src/main/org/jboss/mx/server/registry Tag: BranchMX_1_0
BasicMBeanRegistry.java
Log:
Relations, Queries and MBeanRegistry synched with head
Revision Changes Path
No revision
No revision
1.9.2.2 +10 -5
jmx/src/main/org/jboss/mx/server/registry/BasicMBeanRegistry.java
Index: BasicMBeanRegistry.java
===================================================================
RCS file:
/cvsroot/jboss/jmx/src/main/org/jboss/mx/server/registry/BasicMBeanRegistry.java,v
retrieving revision 1.9.2.1
retrieving revision 1.9.2.2
diff -u -r1.9.2.1 -r1.9.2.2
--- BasicMBeanRegistry.java 13 Mar 2002 21:17:40 -0000 1.9.2.1
+++ BasicMBeanRegistry.java 16 Mar 2002 12:38:51 -0000 1.9.2.2
@@ -55,7 +55,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>.
* @author <a href="mailto:[EMAIL PROTECTED]">Trevor Squires</a>.
* @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>.
- * @version $Revision: 1.9.2.1 $
+ * @version $Revision: 1.9.2.2 $
*/
public class BasicMBeanRegistry
implements MBeanRegistry, BasicMBeanRegistryMBean
@@ -85,6 +85,11 @@
private MBeanServerDelegate delegate = null;
/**
+ * The MBean server delegate's object name.
+ */
+ private ObjectName delegateName = null;
+
+ /**
* The loader repository for loading classes
*/
private LoaderRepository loaderRepository =
LoaderRepository.getDefaultLoaderRepository();
@@ -124,8 +129,8 @@
try
{
this.delegate = new MBeanServerDelegate();
- registerMBean(delegate, new ObjectName(MBEAN_SERVER_DELEGATE),
- null, JMI_DOMAIN);
+ this.delegateName = new ObjectName(MBEAN_SERVER_DELEGATE);
+ registerMBean(delegate, delegateName, null, JMI_DOMAIN);
}
catch (MalformedObjectNameException e)
{
@@ -257,7 +262,7 @@
delegate.sendNotification(
new MBeanServerNotification(
MBeanServerNotification.REGISTRATION_NOTIFICATION,
- delegate, registrationNotificationSequence++, regName));
+ delegateName, registrationNotificationSequence++, regName));
return new ServerObjectInstance(regName,
entry.getResourceClassName(),
delegate.getMBeanServerId());
@@ -372,7 +377,7 @@
delegate.sendNotification(
new MBeanServerNotification(
MBeanServerNotification.UNREGISTRATION_NOTIFICATION,
- delegate,
+ delegateName,
unregistrationNotificationSequence++,
name
)
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development