• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: multithreading and stateless components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multithreading and stateless components


  • Subject: Re: multithreading and stateless components
  • From: email@hidden
  • Date: Thu, 30 Oct 2003 11:26:53 CDT
  • Priority: 3 (Normal)

[demime could not interpret encoding binary - treating as plain text]
On Thu, 30 Oct 2003 15:57:02 +0100 David Teran wrote:

> 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?

It is not supposed to be possible, no.  Your mistake is assuming that
there is always only one instance of a stateless component at a time.
From WOComponent reference documentation:

"If a stateless component is needed simultaneously in separate threads,
additional instances of the component are created (and later discarded)
as necessary to prevent conflicts. Thus, the number of threads in which a
component could be used determines the maximum number of instances of a
stateless component that may be allocated at any given time."
http://developer.apple.com/documentation/WebObjects/Reference/API/com/webobjects/appserver/WOComponent.html

So if it is happening, it's a bug.

>
> 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.

  • Follow-Ups:
    • Re: multithreading and stateless components
      • From: Max Muller <email@hidden>
  • Prev by Date: Re: Java date questions
  • Next by Date: RE: multithreading and stateless components
  • Previous by thread: multithreading and stateless components
  • Next by thread: Re: multithreading and stateless components
  • Index(es):
    • Date
    • Thread