RE: multithreading and stateless components
RE: multithreading and stateless components
- Subject: RE: multithreading and stateless components
- From: Michael Müller <email@hidden>
- Date: Thu, 30 Oct 2003 17:26:11 +0100
Hi David,
> lets assume we have a stateless component which has, afaik, only one
> instance for the whole application.
no, there can be more than only one instance, i.e. consider a
case where you use recursive stateless components: put a debug
statement in the constructor and you'll see that more than
instance is created.
i'm quite sure that WO prevents simultaneous access to the same
instance of a stateless component. i would rather assume that
WO creates new instances in case they're concurrently needed.
regards,--micha
--
-----------------------------------------------------
Michael M|ller (mailto:email@hidden)
Condat Informationssysteme AG
Alt-Moabit 91 D, 10559 Berlin, Germany
Fon: +49.30.3949-1227; Fax: +49.30.3949-1300
http://www.condat.de/
> -----Original Message-----
> From: David Teran [mailto:email@hidden]
> Sent: Thursday, October 30, 2003 3:57 PM
> To: email@hidden
> Subject: multithreading and stateless components
>
>
> Hi,
>
> lets assume we have a stateless component which has, afaik, only one
> instance for the whole application. Is it possible that one thread
> calls appendToResponse and while this component still
> 'appends' another
> thread calls appendToResponse, too?
>
> regards David
>
> [demime 0.98b removed an attachment of type text/directory
> which had a name of David Teran.vcf]
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.