On Sun, 9 Sep 2001, chiu ming luk wrote:
> But I think this line is what I am using, It only
> returns # of sessions for the context which the code
> get called.
>
int manager_note = cm.getNoteId(
ContextManager.CONTAINER_NOTE, "tomcat.standardManager" );
_sessionMgr =
(StandardManager)realRequest.getContext().getContainer().getNote(manager_note);
Replace realRequest.getContext() with the cotexts you get from
ContextManager.
Enumeration enum=cm.getContexts();
...
_sessionMgrForOtherContext=
((Context)enum.nextElement()).getContainer().getNote(manager_note );
Costin