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
But I think this line is what I am using, It only
returns # of sessions for the context which the code
get called.
Any way I can get # of sessions for other context -OR-
for the whole tomcat instance?
thanks again.
--- [EMAIL PROTECTED] wrote:
> On Sun, 9 Sep 2001, chiu ming luk wrote:
>
>
On Sun, 9 Sep 2001, chiu ming luk wrote:
> But there is no such method:
>
> context.getContainer().getNote("tomcat.standardManager")
>
> in tomcat 3.2.1.
>
> getNote() would take an integer argument instead of a
> string. What should be the argument of getNote() and
> what will Container.getNote(
But there is no such method:
context.getContainer().getNote("tomcat.standardManager")
in tomcat 3.2.1.
getNote() would take an integer argument instead of a
string. What should be the argument of getNote() and
what will Container.getNote() return? according to
the source code. It returns Obje
The SessionManager is saved as a note in the context.
context.getContainer().getNote("tomcat.standardManager")
Session management is at a higher level than tomcat.core, and
the goal was to modularize tomcat and keep the components as
independent as possible - with interceptors used as 'glue' b
Costin,
after I get the specific Context object in
org.apache.tomcat.core.Context.
How can I get the SessionManager for that Context?
thanks again.
===
realRequest = facadeM.getRealRequest(request);
cm = realRequest.getContext().getContextManager();
Hi,
What you can do is use ContextManager.getContexts(),
then for each context you can get its SessionManager.
Costin
On Sat, 8 Sep 2001, chiu ming luk wrote:
> Hi,
> I had asked this question before. But I didn't get any
> reply. So I post this again in hope someone could
> help me getting
Hi,
I had asked this question before. But I didn't get any
reply. So I post this again in hope someone could
help me getting number of active session currect
Tomcat holds.
The following code will return number of sessions in a
Context(web app)
but not all the sessions in the whole JVM (tomcat
in