I have a legacy JBoss 4.0.4/EJB 2.1/PostgreSQL system with zillions of "transaction scripted" procedures as server EJB methods, and many of them have very slow and clumsy execution times due to bad programming practices (like creating temporary tables everytime, etc).
Is there something I can plug in JBoss (Aspect-Like) to monitor the executions of remote EJB methods, capturing start time, and end-time, for further profiling later? The idea is to optimize the most executed methods in the system as much as possible, and then investigate alternatives for a new platform.