tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amos Shapira <amos.shap...@webcollage.com>
Subject RE: A Doubt
Date Wed, 02 Aug 2000 11:47:44 GMT
Hi,

It's a single object with multiple *threads* executing its methods in
parallel.
This means, like in any multi-threaded environment, that the instance
data is shared among all the executing threads.

You can declare a servlet as "single-thread-model" (don't remember the
exact term, should be in the DTD of web.xml) which will cause the
servlet engine to put the requests for each servlet in a queue and let
only one thread use a particular servlet instance (and/or create multiple
instances, but the main point is that only one thread will use the
thread instance at any given time).

HTH,

--A

> -----Original Message-----
> From: Ramesh Kumar.T [mailto:rameshkumar@india.adventnet.com]
> Sent: Wednesday, August 02, 2000 9:56 PM
> To: tomcat
> Subject: A Doubt
> 
> 
> Hi,
> suppose more than user accesses  the same  jsp page
> what happens??
> if  i am correct only one instance of the jsp(generated 
> servlet) will be
> maintained by the server(apache)
> then how does he manage it across different users
> if it is a single instance then is the servlet access 
> synchronized?????
> can somebody throw some light on it
> bye
> Ramesh
> 
> 
> 

Mime
View raw message