[jboss-dev-forums] [JBoss AS7 Development] - Re: MBeanServer and TCL for MBeans

Thomas Diesler do-not-reply at jboss.com
Fri Oct 29 08:50:43 EDT 2010


Thomas Diesler [http://community.jboss.org/people/thomas.diesler%40jboss.com] created the discussion

"Re: MBeanServer and TCL for MBeans"

To view the discussion, visit: http://community.jboss.org/message/568972#568972

--------------------------------------------------------------
Kabir,

it seems that this fixes an issue in one place but has negative effect in other places. The remote jsr160 connection does not seem to see MBeans that were registered in the injected MBeanServer.

[ https://jira.jboss.org/browse/JBAS-8581 JBAS-8581] TcclMBeanServer breaks remote MBeanServer access

In other places we have could like this

>    /**
>     * Find or create the MBeanServer
>     */
>    public static MBeanServer findOrCreateMBeanServer()
>    {
>       MBeanServer mbeanServer = null;
>  
>       ArrayList<MBeanServer> serverArr = MBeanServerFactory.findMBeanServer(null);
>       if (serverArr.size() > 1)
>          log.warn("Multiple MBeanServer instances: " + serverArr);
>  
>       if (serverArr.size() > 0)
>          mbeanServer = serverArr.get(0);
>  
>       if (mbeanServer == null)
>       {
>          log.debug("No MBeanServer, create one ...");
>          mbeanServer = MBeanServerFactory.createMBeanServer();
>       }
>  
>       return mbeanServer;
>    }
>  
> 
> 

which now also does not work any more.

I suppose there should only be one MBeanServer in AS7 that all components share and that the jsr160 connector connects to. The code above also comes from third party that does not have access to the MBeanServerService
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/568972#568972]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101029/b274f9b9/attachment.html 


More information about the jboss-dev-forums mailing list