Originally posted by Nikhilesh Fonseca:
I need to store the session objects on to a hashmap so that it is possible to view all the users logged in.
I created a session Hashmap as like this
import java.util.HashMap;
public class HashMapWrapper {
static HashMap sessionHashmap;
private HashMapWrapper(){
}
public static HashMap getHashMapInstance(){
if(sessionHashmap==null)
sessionHashmap= new HashMap();
return sessionHashmap;
}
}
I need to store the user sessions in this hashmap .
I saw an earlier post but couldn't make out much
Also Do i need to store this Hashmap in the application scope or settings properties. I have no idea on how these work
You can thank my dental hygienist for my untimely aliveness. So tiny:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|