RE: Servlet Concurrency Issues

2005-06-08 Thread Michael Pasko
[mailto:[EMAIL PROTECTED] Sent: Tuesday, June 07, 2005 1:15 PM To: Tomcat Users List Subject: RE: Servlet Concurrency Issues From: Michael Pasko [mailto:[EMAIL PROTECTED] Subject: Servlet Concurrency Issues I started allowing other users on it, I stumbled on some problems. Basically what

RE: Servlet Concurrency Issues

2005-06-08 Thread Raghupathy,Gurumoorthy
[mailto:[EMAIL PROTECTED] Sent: 08 June 2005 13:33 To: 'Tomcat Users List' Subject: RE: Servlet Concurrency Issues Thanks Chuck, that was exactly the problem. I was under the very poor assumption that a new thread and newly instantiated servlet object was created every time a request was made

RE: Servlet Concurrency Issues

2005-06-08 Thread Peter Crowther
From: Michael Pasko [mailto:[EMAIL PROTECTED] To mimic the desired behavior I've fixed the problem by adding this (implements SingleThreadModel)... public class ServletName implements SingleThreadModel Note that SingleThreadModel isn't supported in more recent versions of Tomcat. This may

Re: Servlet Concurrency Issues

2005-06-08 Thread Remy Maucherat
On 6/8/05, Peter Crowther [EMAIL PROTECTED] wrote: Note that SingleThreadModel isn't supported in more recent versions of Tomcat. This may or may not worry you depending on whether you want to move to a more recent version :-). I've posted already about that: if you don't know about

RE: Servlet Concurrency Issues

2005-06-08 Thread Peter Crowther
From: Remy Maucherat [mailto:[EMAIL PROTECTED] Your statement is completely wrong, STM is fully supported in Tomcat 5.5, with instance pooling for good performance. Sorry, Remy - I should have checked rather than relying on memory. - Peter

Re: Servlet Concurrency Issues

2005-06-08 Thread Remy Maucherat
On 6/8/05, Peter Crowther [EMAIL PROTECTED] wrote: From: Remy Maucherat [mailto:[EMAIL PROTECTED] Your statement is completely wrong, STM is fully supported in Tomcat 5.5, with instance pooling for good performance. Sorry, Remy - I should have checked rather than relying on memory. No

Re: Servlet Concurrency Issues

2005-06-08 Thread Dakota Jack
, what is the most common method of writing thread safe code? Thank you very much for your help. -Mike -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 07, 2005 1:15 PM To: Tomcat Users List Subject: RE: Servlet Concurrency Issues

Re: Servlet Concurrency Issues

2005-06-08 Thread Anto Paul
On 6/8/05, Dakota Jack [EMAIL PROTECTED] wrote: Your best bet for understanding multithreading issues is to get a good understanding of the JVM. Can you recommend one ? -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL

Re: Servlet Concurrency Issues

2005-06-08 Thread Woodchuck
hihi all, does Tomcat 5.5.x handle this instance pooling transparently for objects implementing STM? do i need to configure Tomcat to turn on this feature? tia, woodchuck --- Remy Maucherat [EMAIL PROTECTED] wrote: Your statement is completely wrong, STM is fully supported in Tomcat 5.5,

Servlet Concurrency Issues

2005-06-07 Thread Michael Pasko
I've recently developed a servlet that connects to an AS/400, and returns results off an sql query based off criteria submitted by a form. I've had pretty much exclusive use of the Tomcat server during development, but when I started allowing other users on it, I stumbled on some problems.

RE: Servlet Concurrency Issues

2005-06-07 Thread Caldarale, Charles R
From: Michael Pasko [mailto:[EMAIL PROTECTED] Subject: Servlet Concurrency Issues I started allowing other users on it, I stumbled on some problems. Basically what happens, when user A submits the form, and then 2 seconds later user B submits the same form. User A stops getting results

RE: Servlet Concurrency Issues

2005-06-07 Thread George Sexton
@jakarta.apache.org' Subject: Servlet Concurrency Issues I've recently developed a servlet that connects to an AS/400, and returns results off an sql query based off criteria submitted by a form. I've had pretty much exclusive use of the Tomcat server during development, but when I started allowing