For any given EJB, there will be a corresponding mbean with the name (all one big string without spaces, I reformatted it to make it easier to read):
where the XXXXX is the name of the jar file that contains the EJBs, YYYYY is the name of the ear file that contains the EJB jar file, and ZZZZZ is the name of the remote interface. (At least, this is what the mbean looks like for one of my EJBs, there could be other variations.)
The above mbean contains a 'stats' property that contains such things as the number of times each method in the ejb was called, and the min and max response times.
You can check this data out via the jmx-console. You can also get the stats property value via twiddle, but you first have to change the classpath to include the jboss-management.jar file (not sure how kosher that is, but it works).
Thanks Peter. But I'm not using a EJB application. Mine is a plain struts application with pojos. I was able to see an option at jms console which shows only count for jsp, servlets as a whole.
My requirement is i need to count for each click on any link on the home page to track which link os most used. Is there option with jboss portal ?
Put all the statistics work to servlet-filter that is invoked on /* .