Hi Geeks
I did some further investigations and figure out that when you omit the
domain part the
MBeanServer will use the default domain and you cannot find the MBean again.
Therefore right now we have to use MBeanServer.getDefaultDomain() when WE DO
NOT SPECIFY the domain !!!
I assumed that MBeanServer.registerMBean() returns the ObjectName it is
registered
onto the MBeanServer and this would be correct but NADA, NIX DA, FORGET IT.
I will put this to the JMX forum and see what the current status on this bug
is.
Andy
----- Original Message -----
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 15, 2001 8:38 AM
Subject: Re: [JBoss-dev] Container.java
> Yes, I was able to use ObjectName(":service=Container,jndiName=someName")
> and the mbean shows up in the DefaultDomain.This is a dynamic mbean, not
> a statically configured mbean coming from a jcml config.
>
> ----- Original Message -----
> From: "David Jencks" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 15, 2001 8:27 AM
> Subject: Re: [JBoss-dev] Container.java
>
>
> > Hi,
> > Are you sure ObjectName(":service=Container,jndiName=someName") really
can
> > be used to register an mbean? normally the object name is actually set
> from
> > jboss.jcml which always seems to have DefaultDomain/JCA/whatever in the
> > name. Although some mbeans have OBJECT_NAME constants lacking the
domain
> > (for instance ConnectionFactoryLoader) in my experience these cannot
> > actually be used to register instances.
> >
> > I wonder if DefaultDomain is always appropriate? Seems to me that we
> might
> > want to put each applications' mbeans in its own domain????
> >
> > I think also you can get all mbeans in any domain with the desired
> jndiname
> > with
> >
> > ObjectName("*:service=Container,jndiName=somename").
> >
> > david jencks
>
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development