I would like to be able to query the session factory for a list of all sessions which were created and are still open. It seems like this should be tracked somewhere, even if it is not public or directly accessible from the factory.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It seems to me that you are incorrectly framing your question (an XY Problem).
Why would you need to know, from a central place, which sessions are still open?
Is your application leaking resources? Do you need performance statistics?
I suggest that you edit your question to reflect the actual problem you are trying to solve.