• 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: WO 5.4, Ajax polling and multi-threading questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO 5.4, Ajax polling and multi-threading questions


  • Subject: Re: WO 5.4, Ajax polling and multi-threading questions
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 18 Feb 2009 09:15:43 -0500

Do you think this is a good approach?
1. We implement a CustomRequestHandler that extends WODirectActionRequestHandler [All our app alls are DAs]
2. In the CustomRequestHandler#handleRequest() method we conditionally call requestHandlingLock() for all the existing EOF requests and do not lock for the new Ajax ones?


In short we're trying to reach a situation where any EOF calls block behind each other like they do today. But any Ajax calls are not limited by the fact that EOF is single-threaded - they are only limited by the # of worker threads in the WOA.
I think you're working too hard ... If you're not using EOF, you won't lock EOF. You don't need to do a custom anything -- just make direct actions (or Ajax framework component actions) that perform your Ajax calls. There should be nothing additional you need to do to avoid lock contention.

ms

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >WO 5.4, Ajax polling and multi-threading questions (From: Karthik N <email@hidden>)

  • Prev by Date: WO 5.4, Ajax polling and multi-threading questions
  • Next by Date: Re: WO 5.4, Ajax polling and multi-threading questions
  • Previous by thread: WO 5.4, Ajax polling and multi-threading questions
  • Next by thread: Re: WO 5.4, Ajax polling and multi-threading questions
  • Index(es):
    • Date
    • Thread