There is a task of managing desktop client session status:
- Ensure only single client is “connected”.
- Force client logout – kill session.
- Kill client session on timeout due to inactivity.
Server-side is JBoss and EJB3. How to achieve such task?
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.
Method annotated with @Remove allows to kill EJB3 session.
We can ensure uniqueness of session by adding it to static (or other unique) container and check for existence before returning it for the new client. If existing session found, we throw an exception for the user.
So, this answers my questions, I think.