Re: Invalid default domain?

Eamonn McManus <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Jeremy Boynes wrote:
> On a related note, the spec for ObjectName says that "if the domain is 
> empty, it will be replaced in certain contexts by the default domain of 
> the MBean server in which the ObjectName is used."
> 
> Is there a guide anywhere on what those contexts are?

I don't think so.  Basically, it is any method in the MBeanServer 
interface that has an ObjectName parameter.

Regarding the "default default domain" being an empty string, apart from 
the compliance issue this isn't a very good idea since it means you 
can't tell whether user code that does something like 
mbeanServer.getMBeanInfo(":type=Foo") wanted to use the default domain, 
whatever it was, or wanted to refer specifically to an MBean in the 
empty domain.

This doesn't fix your problem with existing code, though.  Probably a 
system property for "bug compatibility" is the best you can do.

Regards,
Éamonn McManus   JMX Spec Lead   +33 476 188 352



> -- 
> Jeremy
> 
> 
> Jeremy Boynes wrote:
> 
>> In MX4J the default domain is an empty string; the JavaDoc for 
>> MBeanServerFactory says that the standard default domain is 
>> "DefaultDomain" and indeed that is the value returned by JDK1.5
>>
>> I think for compliance and compatibility we need to change the default 
>> used by MX4J.
>>
>> However, this seems like a major change that will be quite visible to 
>> users. Perhaps we can add a system property that allows this to be 
>> specified, but as the default behaviour should be the same as the RI 
>> they would still have to opt in by setting the property to get back to 
>> the current behaviour.
>>
>> Any other thoughts on how to address this?
>> -- 
>> Jeremy
>>
>>
>> -------------------------------------------------------
>> SF email is sponsored by - The IT Product Guide
>> Read honest & candid reviews on hundreds of IT Products from real users.
>> Discover which products truly live up to the hype. Start reading now.
>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>> _______________________________________________
>> Mx4j-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mx4j-devel
> 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Mx4j-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mx4j-devel


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.