Pushkar
Pushkar

Reputation: 7580

How to count number of active sessions in Java EE applications?

I am using JAAS for authentication in JBoss. I am using the DatabaseServerLoginModule to perform the authentication.

Now I want to track the number of active session in the application. I tried writing a HttpSessionListener but for some reason it is not getting called on successful login.

Any thoughts on how I can achieve this?

Upvotes: 0

Views: 2087

Answers (1)

Aravind Yarram
Aravind Yarram

Reputation: 80176

Follow this thread https://community.jboss.org/message/415269. Seems like you have to explicitly manage the session. I am not sure how JAAS works. And more important how JAAS and HTTP Session lifecycle work together here: JAAS and the HTTP Session Life Cycle

Upvotes: 1

Related Questions