[jboss-dev-forums] [Design of Management Features on JBoss] - Re: How to Expose MBean Invocation Stats into admin-console?

ALRubinger do-not-reply at jboss.com
Fri May 29 10:39:08 EDT 2009


Using my patch from the previous post, and jboss-deployers:2.2.0-SNAPSHOT, I no longer need to addOutput to the DeploymentUnit.

But the results are weird:

ManagedDeployment: vfszip:/home/alrubinger/business/jboss/wc/jbossas/branches/Branch_5_x/build/output/jboss-5.2.0.Beta/server/default/deploy/stateless-test.jar/
  | +++ ManagedComponent(name=org.jboss.ejb3.metrics.deployer.ManagedInvocationStatisticsWrapper, type=(ComponentType{type=MCBean, subtype=*}), compName=jboss.j2ee:service=EJB3,name=RunAsStatelessEjbName-metrics-invocation, attachment: org.jboss.ejb3.metrics.deployer.ManagedInvocationStatisticsWrapper
  | ++++++ properties: [stats]
  | +++ ManagedComponent(name=org.jboss.ejb3.metrics.deployer.BasicStatelessSessionInstanceMetrics, type=(ComponentType{type=MCBean, subtype=*}), compName=jboss.j2ee:service=EJB3,name=AnonymousStatelessBean-metrics-instance, attachment: org.jboss.ejb3.metrics.deployer.BasicStatelessSessionInstanceMetrics
  | ++++++ properties: [removeCount, currentSize, maxSize, createCount, availableCount]
  | 

I get "metrics-invocation" for "RunAsStatelessEjbName" and "metrics-instance" for "AnonymousStatelessBean".  I should be getting both invocation and instance metrics for each (as log output from my deployer confirms).  And I'm missing some other EJBs entirely:

09:32:27,330 INFO  [Ejb3MetricsDeployer] Invocation stats for :jboss.j2ee:service=EJB3,name=AnonymousStatelessBean-metrics-invocation
  | 09:32:27,330 INFO  [Ejb3MetricsDeployer] Metrics stats for :jboss.j2ee:service=EJB3,name=AnonymousStatelessBean-metrics-instance
  | 09:32:27,330 INFO  [Ejb3MetricsDeployer] Invocation stats for :jboss.j2ee:service=EJB3,name=CheckedStatelessBean-metrics-invocation
  | 09:32:27,330 INFO  [Ejb3MetricsDeployer] Metrics stats for :jboss.j2ee:service=EJB3,name=CheckedStatelessBean-metrics-instance
  | 09:32:27,330 INFO  [Ejb3MetricsDeployer] Invocation stats for :jboss.j2ee:service=EJB3,name=DefaultPoolStatelessBean-metrics-invocation
  | 09:32:27,359 INFO  [Ejb3MetricsDeployer] Metrics stats for :jboss.j2ee:service=EJB3,name=DefaultPoolStatelessBean-metrics-instance
  | 09:32:27,359 INFO  [Ejb3MetricsDeployer] Invocation stats for :jboss.j2ee:service=EJB3,name=RunAsStatelessEjbName-metrics-invocation
  | 09:32:27,359 INFO  [Ejb3MetricsDeployer] Metrics stats for :jboss.j2ee:service=EJB3,name=RunAsStatelessEjbName-metrics-instance
  | 09:32:27,359 INFO  [Ejb3MetricsDeployer] Invocation stats for :jboss.j2ee:service=EJB3,name=StrictMaxPoolStatelessBean-metrics-invocation
  | 09:32:27,360 INFO  [Ejb3MetricsDeployer] Metrics stats for :jboss.j2ee:service=EJB3,name=StrictMaxPoolStatelessBean-metrics-instance
  | 09:32:27,360 INFO  [Ejb3MetricsDeployer] Invocation stats for :jboss.j2ee:service=EJB3,name=UnsecuredStatelessBean-metrics-invocation
  | 09:32:27,360 INFO  [Ejb3MetricsDeployer] Metrics stats for :jboss.j2ee:service=EJB3,name=UnsecuredStatelessBean-metrics-instance
  | 

S,
ALR

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

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



More information about the jboss-dev-forums mailing list