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" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to