>
> 2. The OP wants current sessions so a ServletContextListener that only
> runs at context start and stop isn't going to help.
>

In ServletContextListener, arg0.getServletContext(), only gives a
ApplicationContextFacade, but I can access apache context from there, so I
can't get the active sessions.

Any help with JMX?

On 19 May 2011 12:24, Mark Thomas <ma...@apache.org> wrote:

> On 19/05/2011 11:17, chris derham wrote:
> >>
> >>
> >> 2. The OP wants current sessions so a ServletContextListener that only
> >> runs at context start and stop isn't going to help.
> >>
> >
> > I don't understand this - could you explain a little further, or point me
> to
> > some docs? I thought when a context starts, sessions can start against
> it.
> > How is this not going to help?
>
> Assuming the OP needed to access the ServletContext to get the current
> sesison count (which they don't - it won't help at all) then the OP will
> want to access the current session count from a servlet. Being able to
> access the ServletContext from a ServletContextListener is zero help
> when you are in a Servlet.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to