[jboss-dev-forums] [Design of Management Features on JBoss] - Re: ManagedObjects for MBeans

jason.greene@jboss.com do-not-reply at jboss.com
Mon May 11 21:36:19 EDT 2009


For background, here is the mapping info I sent to the jopr team.

The component mappings are:

MBean, WebApplicationManager = Tomcat Session Manger
MBean, Servlet = Servlet metrics
MBean, WebApplication = Tomcat Deployment Info

The WebApplication and Servlet components are underneath a 
ManagedDeployment with the name that is a combination of the host and 
the context root.

The WebApplicationManager components are underneath a ManagedDeployment 
with the same name as the context root.

To correlate these all together you should be able to strip the host 
portion of the deployment name (so the first "//[^/]*/" portion, in this 
case //localhost/)

To match to the deployment you should be able to match the docBase 
property of the WebApplication component to the deployment name, by 
stripping the URL protocol.

For example:

war deployment name = 
vfsfile:/Users/jason/devel/jbossas/branches/Branch_5_x/build/output/jboss-5.1.0.GA/server/default/deploy/jmx-console.war/

WebApplication.docBase =
/Users/jason/devel/jbossas/branches/Branch_5_x/build/output/jboss-5.1.0.GA/server/default/deploy/jmx-console.war/

Here is what the tomcat MBean component tree looks like for jmx console:

ManagedDeployment: //localhost/jmx-console
  ManagedComponent:
    name=jboss.web:J2EEApplication=none,J2EEServer=none,
         j2eeType=WebModule,name=//localhost/jmx-console
    type=MBean, WebApplication
  ManagedComponent
    name=jboss.web:J2EEApplication=none,J2EEServer=none,
         WebModule=//localhost/jmx-console,j2eeType=Servlet,
         name=HtmlAdaptor
    type=MBean, Servlet
  ...

ManagedDeployment: /jmx-console
  ManagedComponent(
    name=jboss.web:host=localhost,path=/jmx-console,type=Manager,
    type=MBean, WebApplicationManager

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230250#4230250

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230250



More information about the jboss-dev-forums mailing list