Hi, I have a bean (OrderValues) on the session that contains many vectors to store information from an HTML form. If I have only one session running, all of my data is retrieved correctly, however, when I'm running multiple sessions( i.e. multiple browser instances) all of my session data is retrieved correctly except from one vector that is storing object references. The object references returned are those that belonged to the last session to hit the web server (Tomcat 4.0.3). Any ideas on what I can do to correct this problem?
For a new session I call a servlet that creates a new OrderValues bean ( this bean contains all the Vectors). The constructor for the OrderValues bean sets each of the Vectors to "new Vector();". This bean is then placed on the session Object. I have double checked my code to be sure that the Vector in question ( subscriberInfo) is in fact being set to a "new Vector();". The subscriberInfo Vector stores objects of type Subscriber, and I have the Subscriber objects on the session Object as well. I'm obviously doing something incorrectly, but I can't find it yet. Any help is much appreciated!
Joined: Jun 12, 2002
Alas, I have found my coding error: I instantiated the subscriberInfo Vector as a static variable. Must've been a brain fart! Thanks for all your help!