Re: Servlet mixing requests with multiple users.
Wednesday, May 15, 2002 07:23 AM
Be careful to synchronize access to any shared resources, including your servlets class and instance variables - your servlet is probably running in a multithreaded servlet container that handles multiple threads at the same time ( each user uses a new thread )
I would suggest avoiding instance or class variables alltogether and pass local variables through your servlets. Its faster than having to synchronize portions of your code.