You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Maria Vetzabet Dzul Gutierrez <ve...@correo.uqroo.mx> on 2003/12/08 22:55:12 UTC
maxActiveSessions
I´m working with tomcat-3.3. I configured the server.xml I allowed 25
sessions.
<SimpleSessionStore maxActiveSessions="25" />. When the 26 session
acces the jsp I want to show the page that said . Sorry the Server is
busy. How I can do it.
Thank s
Vetza
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: maxActiveSessions
Posted by Bill Barker <wb...@wilshire.com>.
This is somewhat TC 3.3 specific, but something like:
HttpSession session = request.getSession(true);
if(session == null) {
returnBusyPage(request, response);
return;
}
TC 3.3 will return null for the session if it is unable to create one (e.g.
because maxActiveSessions is exceeded).
"Maria Vetzabet Dzul Gutierrez" <ve...@correo.uqroo.mx> wrote in message
news:3FD4F340.756B3FDC@correo.uqroo.mx...
> I�m working with tomcat-3.3. I configured the server.xml I allowed 25
> sessions.
> <SimpleSessionStore maxActiveSessions="25" />. When the 26 session
> acces the jsp I want to show the page that said . "Sorry the Server is
> busy". How I can do it.
> Thank 's
> Vetza
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org