[multiple changes]

2007-03-30  Andrew Haley  <aph@redhat.com>

        * javax/management/ObjectName.java: Handle 0-length names.

2007-03-27  Andrew Haley  <aph@redhat.com>

        * javax/management/MBeanServerFactory.java: Use the domain that
        we've been passed, not the fixed string "DefaultDomain".

From-SVN: r123430
This commit is contained in:
Andrew Haley 2007-04-02 16:24:35 +00:00 committed by Andrew Haley
parent bfd6b6cb22
commit e6c45b1e34
5 changed files with 13 additions and 1 deletions

View file

@ -370,7 +370,7 @@ public class MBeanServerFactory
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;