Hi to all,

I need to obtain the number of active sessions on the current application.
If written the following (import org.apache.catalina.Context, import
org.apache.catalina.Manager):
public int getActiveSession(){
Context context=null;
Manager manager=context.getManager();
return manager.getActiveSessions();
}

However I don't know who to get the current context. Is there any static
method from which I can get it?

THanks in advance!

Reply via email to