How can I monitor how many clients is connected to my statefull controller bean? I want to used it as a part of my license application.
I have tried to make a static variable "clients" which increase when ejbcreate is called and decrease when ejbremove is called. But this solution is not realible? Any other solution?
I would look at extending the stateful cache.
That controls the lifecycle.