Cluster nodes create extra sessions on top of the replicated one

2004-12-28 Thread LAM Kwun Wa Joseph
Hi, I found that in my 4-node TC5.5.5 cluster, whenever I call request.getSession(true), a session is normally created by the master node and replicated to all slaves. However, each slave node will mysteriously create one additional session by its own (not replicated to others, each with

How to detect expired session vs. no session?

2004-12-08 Thread LAM Kwun Wa Joseph
Hi, How can I tell between a request using an expired session vs a request with no session at all? I need to show different messages to users being kicked due to inactivity and to anonymous users. Thanks! Regards, Joseph Lam

RE: How to detect expired session vs. no session?

2004-12-08 Thread LAM Kwun Wa Joseph
the default behaviour of creating a new session when none exists. -Original Message- From: LAM Kwun Wa Joseph [mailto:[EMAIL PROTECTED] Sent: Wednesday 08 December 2004 08:23 To: [EMAIL PROTECTED] Subject: How to detect expired session vs. no session? Hi, How can I tell between

RE: How to detect expired session vs. no session? (Solved)

2004-12-08 Thread LAM Kwun Wa Joseph
- From: LAM Kwun Wa Joseph [mailto:[EMAIL PROTECTED] Sent: Wednesday 08 December 2004 09:35 To: [EMAIL PROTECTED] Subject: RE: How to detect expired session vs. no session? But does it have the same effect for a request with an expired session vs a request with no session at all? I think

RE: How to detect expired session vs. no session? (Solved)

2004-12-08 Thread LAM Kwun Wa Joseph
String id = request.getRequestedSessionId(); if (null==id) { // there was no jsessionid in the request } else if (request.isRequestedSessionIdValid()) { // there was a valid jsessionid in the request } else { // there was an invalid jsessionid in the request } In

jsp:forward and access log

2004-11-25 Thread LAM Kwun Wa Joseph
Hi, If I have X.jsp who is responsible for forwarding to Y.jsp using jsp:forward, can Tomcat logs the actual page (Y.jsp) who served the request in the access log, instead of X.jsp? Regards, Joseph Lam - To unsubscribe,

high traffic Tomcat sites out there?

2004-11-22 Thread LAM Kwun Wa Joseph
For my Tomcat cluster I'm looking for an upper limit on the estimation of how much traffic it may face. Say, would thousands of HTTP req/s be too 'astronomical' for a 4-node Dual P4 Xeon cluster to achieve? (I'm talking about dynamic pages such as stock quotes and news) Does anyone know of any

Tomcat 5.X always creates session for every request?

2004-11-17 Thread LAM Kwun Wa Joseph
I have implemented a simple HttpSessionListener dumping every new session created. I found that my Tomcat (tried on 5.0.2x and 5.5.4) will always create a new session for every HTTP request, even if the JSP page doesn't request for session and the HTTP client doesn't use cookie nor post any