get Servlet Context Name

2001-10-01 Thread chiu ming luk
hi, any way I can get a servlet context ( web application )'s name with in a servlet? on Servlet API 2.2 (not Servlet 2.3) -OR- there is no way to do that? P.S. I am using tomcat... may I access internal tomcat object to achieve that? thanks __

Re: Number of active session in Tomcat instance

2001-09-09 Thread chiu ming luk
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 wr

Re: Number of active session in Tomcat instance

2001-09-09 Thread chiu ming luk
solutions could use a single > manager for > the entire tomcat - this would scale much better, > and would > probably be easier to control. > > Costin > > > > On Sun, 9 Sep 2001, chiu ming luk wrote: > > > Costin, > > after I get the specific C

Re: Number of active session in Tomcat instance

2001-09-08 Thread chiu ming luk
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 > an

Number of active session in Tomcat instance

2001-09-08 Thread chiu ming luk
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