You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Supreeth Shetty <su...@net.com> on 2006/02/10 17:36:44 UTC
StandardManager instance
Hello all,
I got a really quick question. How do i get hold of the StandardManager instance which the tomcat instatiates when it starts up??
I need it to get all the active sessions the server is handling. If i can get a hold of all session list someother way, then thats fine too ...
thanks in advance
Supreeth
Re: StandardManager instance
Posted by Supreeth Shetty <su...@net.com>.
So does that mean i need to store the sessions myself?? Can i not get the
list of sessions already being managed by tomcat?
----- Original Message -----
From: "Leon Rosenberg" <ro...@googlemail.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Friday, February 10, 2006 10:14 PM
Subject: Re: StandardManager instance
class SessionHolder implements HttpSessionListener{
/* (non-Javadoc)
* @see
javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http.Htt
pSessionEvent)
*/
public void sessionCreated(HttpSessionEvent arg0) {
//Store session
}
....
to add this listener to your webapp, add to web.xml:
<!-- Listeners -->
<listener>
<listener-class>
de.friendscout.datingr4.admin.presentation.util.SessionCounter
</listener-class>
</listener>
regards
leon
On 2/10/06, Supreeth Shetty <su...@net.com> wrote:
> Hello all,
> I got a really quick question. How do i get hold of the StandardManager
instance which the tomcat instatiates when it starts up??
> I need it to get all the active sessions the server is handling. If i can
get a hold of all session list someother way, then thats fine too ...
>
> thanks in advance
> Supreeth
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: StandardManager instance
Posted by Leon Rosenberg <ro...@googlemail.com>.
class SessionHolder implements HttpSessionListener{
/* (non-Javadoc)
* @see javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http.HttpSessionEvent)
*/
public void sessionCreated(HttpSessionEvent arg0) {
//Store session
}
....
to add this listener to your webapp, add to web.xml:
<!-- Listeners -->
<listener>
<listener-class>
de.friendscout.datingr4.admin.presentation.util.SessionCounter
</listener-class>
</listener>
regards
leon
On 2/10/06, Supreeth Shetty <su...@net.com> wrote:
> Hello all,
> I got a really quick question. How do i get hold of the StandardManager instance which the tomcat instatiates when it starts up??
> I need it to get all the active sessions the server is handling. If i can get a hold of all session list someother way, then thats fine too ...
>
> thanks in advance
> Supreeth
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org