More details please. Which exact version of JBoss AS? Where are you checking the metrics? And which beans show the metrics and which ones do not?
We use the versions:
JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902232048)
Java VM: Java HotSpot(TM) Client VM 1.6.0-b105,Sun Microsystems Inc.
OS-System: Windows XP 5.1,x86
We check the metrics with the JMX console in the tree jboss.j2ee, more precisely, the org.jboss.ejb3.statistics.InvocationStatistics. In the jboss.j2ee, all developed beans are listet.
Here is an example: The ReportingBean is a stateless session bean implementing a remote interface. This bean is accessed by the clients via lookup. The statistics are like this:
InvocationStatistics concurrentCalls='0' method name='enterReport' count='200' minTime='15' maxTime='2047' totalTime='20609' method name='enterTxReportFile' count='29' minTime='46' maxTime='2062' totalTime='7061' method name='getFileProcessingReply' count='3' minTime='31' maxTime='62' totalTime='140'
The ReportingBean itself delegates the processing of incoming messages to a stateless session bean called TxBean. The bean spans a new transaction. And here the statistics shows nothing, even everything is delegated to this bean:
Note that for the ReprtingBean, the global JNDI name is overwritten in the jboss.xml file but not for the TxBean.
JBoss [Morpheus] 5.0.1.GA
JBossAS-5.0.1, did not have full support for the EJB3 metrics. You will have to upgrade to the latest stable JBossAS-5.1.0 and apply our EJB3 latest plugin http://www.jboss.org/ejb3/ejb3plugin.html to get the entire set of EJB3 metrics.
Thank you for your explanation. We will upgrade as soon as possible.