You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Alex Pijoan <ap...@inforcomsoft.net> on 2004/02/19 12:50:17 UTC
problem with simultaneous access
Hi I have installed tomcat version 4.1.24, and I have a problem.
My problem is this, when I call to same servlet from 2 computers at same
time the first that send request not receive the response and the second
receive the one's response and his response is lost. I suppose that the
problem is on the configuration of tomcat and not the servlet because if
I do the same things but with a second delay between the first and the
second request not have this problem.
Please can someone help me?
Re: problem with simultaneous access
Posted by Andy Armstrong <an...@tagish.com>.
Alex Pijoan wrote:
> Hi I have installed tomcat version 4.1.24, and I have a problem.
>
> My problem is this, when I call to same servlet from 2 computers at same
> time the first that send request not receive the response and the second
> receive the one's response and his response is lost. I suppose that the
> problem is on the configuration of tomcat and not the servlet because if
> I do the same things but with a second delay between the first and the
> second request not have this problem.
This isn't the right place to ask the question but it sounds as if
there's a design problem with the servlet. A single instance of the
servlet will receive both requests. If the second request arrives before
the first is processed it will be handling them concurrently. Is your
servlet thread safe?
--
Andy Armstrong, Tagish
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org