Hello folks, I have a situation in which 2 threads are being started in the same user session. Now, that in itelf is not necessarily a problem - the problem it that both threads are executing the same JSP pages. This still does not hurt anything as yet,(The JSPs use session variables so that different users don't interfere with each other) but in the logs (using log4j) I can see the same JSP being executed by multiple threads simultaneously.
There is definitely no need for this. I'd like to configure Tomcat such that it only runs one JSP at a time per user session. However, I am fine with having each user session start its own thread. Can this be configured in Tomcat (one session = one thread) or is this outside of Tomcat? Here is an example - notice the interleaving of the threads, as they execute the same JSP (ClothingBuyer.jsp) such that Thread 10 finishes while Thread 8 is still in the middle of working, and remember, these are from one user session - not two users. [Thread-10]2004-08-19 11:16:01,494 DEBUG FitMe.site.ClothingBuyer - Self=user1 [Thread-10]2004-08-19 11:16:01,494 DEBUG FitMe.site.ClothingBuyer - Result from query is not null, continuing [Thread-10]2004-08-19 11:16:01,508 DEBUG FitMe.site.ClothingBuyer - A user name found: user2 [Thread-8]2004-08-19 11:16:01,516 DEBUG FitMe.site.ClothingBuyer - Self=user1 [Thread-8]2004-08-19 11:16:01,516 DEBUG FitMe.site.ClothingBuyer - Result from query is not null, continuing [Thread-10]2004-08-19 11:16:01,519 DEBUG FitMe.site.ClothingBuyer - A user name found: userx [Thread-8]2004-08-19 11:16:01,529 DEBUG FitMe.site.ClothingBuyer - A user name found: user2 [Thread-10]2004-08-19 11:16:01,530 DEBUG FitMe.site.ClothingBuyer - A user name found: user3 [Thread-10]2004-08-19 11:16:01,537 DEBUG FitMe.site.ClothingBuyer - A user name found: user4 [Thread-10]2004-08-19 11:16:01,539 DEBUG FitMe.site.ClothingBuyer - Finished with user list. [Thread-8]2004-08-19 11:16:01,544 DEBUG FitMe.site.ClothingBuyer - A user name found: userx [Thread-8]2004-08-19 11:16:01,550 DEBUG FitMe.site.ClothingBuyer - A user name found: user3 [Thread-8]2004-08-19 11:16:01,556 DEBUG FitMe.site.ClothingBuyer - A user name found: user4 [Thread-8]2004-08-19 11:16:01,557 DEBUG FitMe.site.ClothingBuyer - Finished with user list. Once again, here is my goal: I'd like to configure Tomcat such that it only runs one JSP at a time per user session. I am fine with having each user session start its own thread. Can this be configured in Tomcat (one session = one thread) or is this outside of Tomcat? Bill Bruns --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
