Reputation: 5542
I'd like to know how many instances of a certain EJB bean are created. And also their current state, (i.e. which one is passivated or activated). So far, the only way I use to monitor beans life cycle is the debugging mode (like constructor calls, @PostContruct methods...).
Upvotes: 3
Views: 608
Reputation: 7324
The answer to this question may depend on which application server you are running, but if the server you are running is fully Java EE compatible, they should provide some EJB statistics according to JSR 77 as managed objects via JMX. I'd suggest reviewing your application server's documentation further as well.
Upvotes: 2