B
Ben
I'm building a web application using Servlets/JSP and Tomcat 5.0 and
I'm using HttpServletRequest.getSession() and
ServletConfig.getServletContext() to store session and application
scope objects. The current design has non-servlet classes accessing the
objects through the servlet's get/set methods. The application
generates WML so I'm not using Struts or similar framework.
Things seem to work fine when accessing the server from a single
client. The problem is when accessing the server concurrently from
multiple clients, getSession() and getServletContext() sometimes return
null (or the object being retrieved through getAttribute() is null).
This does not always happen and I can't find any discernable pattern.
Does anyone have any idea why this might be happening or what can be
done to make the application more stable for multiple users? Thanks.
Ben
I'm using HttpServletRequest.getSession() and
ServletConfig.getServletContext() to store session and application
scope objects. The current design has non-servlet classes accessing the
objects through the servlet's get/set methods. The application
generates WML so I'm not using Struts or similar framework.
Things seem to work fine when accessing the server from a single
client. The problem is when accessing the server concurrently from
multiple clients, getSession() and getServletContext() sometimes return
null (or the object being retrieved through getAttribute() is null).
This does not always happen and I can't find any discernable pattern.
Does anyone have any idea why this might be happening or what can be
done to make the application more stable for multiple users? Thanks.
Ben