I am using Glassfish V3 with filerealm. How do I ensure each username can only be login into one machine at any one time.
I thought of using a hashmap datastore to store the remote address, but then it would means I would need to change all the struts actions to check if the user has already login and is not from another ip address.
How is it being done ? this is only single machine, how do I scale it up to a cluster of Glassfish?