0 Replies Latest reply on Nov 6, 2018 10:08 AM by icemaker

    EJB: How to monitor the time it took to get an available instance from the pool?

    icemaker

      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.