This seems like a trivial thinko. We are passed a domain but we
ignore it and substitute "DefaultDomain"...
Andrew.
2007-03-27 Andrew Haley <[EMAIL PROTECTED]>
* javax/management/MBeanServerFactory.java: Use the domain that
we've been passed, not the fixed string "DefaultDomain".
Index: javax/management/MBeanServerFactory.java
===================================================================
--- javax/management/MBeanServerFactory.java (revision 123156)
+++ javax/management/MBeanServerFactory.java (working copy)
@@ -370,7 +370,7 @@
MBeanServerDelegate delegate = builder.newMBeanServerDelegate();
if (delegate == null)
throw new JMRuntimeException("A delegate could not be created.");
- MBeanServer server = builder.newMBeanServer("DefaultDomain", null,
delegate);
+ MBeanServer server = builder.newMBeanServer(domain, null, delegate);
if (server == null)
throw new JMRuntimeException("A server could not be created.");
return server;