I would like to get the time it takes to get an available instance of an EJB from its associated pool.
I can easily log the time it takes to execute each method of an EJB by using an Interceptor and the @AroundInvoke annotation.
But I cannot find a way to measure the time it took to aquire the instance from the pool (whose size is defined in the standalone.xml) before the call to the method is effectively made.
This would be very useful to know if the size of the pool is correctly tuned to avoid too much waiting time when my appplication needs a new instance of an EJB.
Retrieving data ...