Count active sessions in J2EE app deployed on JBoss 3.2.1

后端 未结 2 1282
生来不讨喜
生来不讨喜 2021-01-07 14:37

I manage a J2EE application which is deployed on JBoss 3.2.1. As part of my service to my client I want to provide reports which show the number of active sessions. I have

2条回答
  •  佛祖请我去吃肉
    2021-01-07 15:33

    The JBoss JMX Console already has a integrated session counter in host=localhost,path=/YOUR_PROJECT,type=Manager

    By the way, you should use AtomicInteger or synchronize to take care of concurrency problems.

提交回复
热议问题