Yes, somebody did indeed answer better.. Please see Manfred Wolff's earlier response
in this thread. :)
> -Original Message-
> From: Ludovic Maitre [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 9:08 AM
> To: Struts Users Mailing List
> Subject: Re: c
Hello,
I think, but i hope that somebody could answer better, that the servlet
container will instantiate a new Servlet, and accompanying Action
classes, if this is needed. As far as i know, in J2EE, this is the
servlet container who is responsible for forking new threads for the
clients on-de
There are two concepts you have to understand: thread-safe and reentrant.
A method is reentrant, if many threads can enter the method as the same
time without conflicting. For that you only have to act on parameters
and local variables. Threads only share the data- and the code-segment
of an ap
TECTED]
> Sent: 10 May 2004 14:04
> To: Struts Users Mailing List; Geeta Ramani
> Subject: Re: concurrency in struts
>
>
> Hi Geeta,
> Can you elaborate more?
>
> -Jignesh
>
> On Monday 10 May 2004 18:18, Geeta Ramani wrote:
> > Jignesh:
> >
> >
ginal Message-
From: Jignesh Patel [mailto:[EMAIL PROTECTED]
Sent: 10 May 2004 14:04
To: Struts Users Mailing List; Geeta Ramani
Subject: Re: concurrency in struts
Hi Geeta,
Can you elaborate more?
-Jignesh
On Monday 10 May 2004 18:18, Geeta Ramani wrote:
> Jignesh:
>
> The "exe
Riyad,
But does this methods are synchronized? Otherwise if two threads execute at
the same time they can access the method at the same time. And result will be
big mess.
-Jignesh
On Monday 10 May 2004 18:29, Riyad Kalla wrote:
> This question is actually what made me sign up to this mailing lis
Hi Geeta,
Can you elaborate more?
-Jignesh
On Monday 10 May 2004 18:18, Geeta Ramani wrote:
> Jignesh:
>
> The "execute" method of the Action class includes (among others) as params
> the request, response objects of each user.. That I believe is the key..:)
>
> Regards,
> Geeta
>
> > -Origina
This question is actually what made me sign up to this mailing list...
the answer is that there is no implicit concurrency. All your
work/variables in Actions should be method-scoped and not use ANY class
variables because of this. My specific questions was that I wanted to
use a class variable
Jignesh:
The "execute" method of the Action class includes (among others) as params the
request, response objects of each user.. That I believe is the key..:)
Regards,
Geeta
> -Original Message-
> From: Jignesh Patel [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 8:54 AM
> To: S
9 matches
Mail list logo