I've used custom MBeans and JMX to collect web service metrics before. My current organization in interested in AOP to solve the problem within our web services (Axis, CXF...). We would like to collect typical metrics like number of invocations, bytes received, bytes sent, duration of time to process request, duration of time to call another service and several others.
Our services are deployed to Tomcat 5.5.* and JBoss 4.0.5 (within Tomcat).
Any pointers here? We're looking for a container agnostic implementation.
A well formed tutorial would be a nice start. I've seen one that was OK, but not great.
I am not aware of any specific tutorial in this area. However, writing aspects to do what you describe is not that difficult. So I will suggest starting with the one you have seen and modify as you need (I am assuming that you are already familiar with AspectJ).