Back when I worked on WebLogic I created an MBean project that could be included with each service. This project was a runtime MBean that contained 12 counters, but could be extended. I then used the WebLogic Scripting Tool to read the counters and feed them into our enterprise metric system.
Does anyone have information about runtime MBeans on JBoss? It should be possible as jmx-console allows me to read the MBeans from our servers remotely and there are counters indicating the number of invocations for our services.
Ideally I need a solution that will work on JBoss and Tomcat but I'll do one at a time.