Question : Check if EJB is invioked

Is there a way to check if the ejb is running or invoked using any variable.

Answer : Check if EJB is invioked

There is no direct way to check if an EJB method has been INVOKED, however, you can check whether the EJB was CREATED by hooking to ejbCreate(). If you can modify the source code, you can add the necessary logging.

Apart from this, your application server may be providing a monitor tool on console that may display EJB invocation statistics.
Random Solutions  
 
programming4us programming4us