• 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: how many instances?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how many instances?


  • Subject: Re: how many instances?
  • From: "Jonathan Fleming" <email@hidden>
  • Date: Sat, 22 Nov 2003 17:21:19 +0000

From: Denis Stanton <email@hidden>
To: email@hidden
CC: email@hidden
Subject: Re: how many instances?
Date: Wed, 19 Nov 2003 13:04:40 +1300

Thanks for you help and reassurance Jonathan

On Wednesday, November 19, 2003, at 10:48 AM, email@hidden wrote:

Fortunatley, it's easy to turn to 'yes'. You don't need to use a
differnet set of APIs, or anything like that. You simply need to put:
setAllowsConcurrentRequestHandling(true)
in your Application constructor.

I need to clarify something to the list since a couple of people have taken my reference to APIs to mean something I didn't intend. I wasn't thinking there was more than one API, just that some methods should be avoided because they would cause problems with concurrent requests. That is, I was worried that some of the common methods I use might not be thread safe and I had not seen any warnings.


What I am hearing is that the methods are individually OK, but I could write unsafe code. As long as I don't put anything in Application or class variables I'm probably OK.

I do already use variables in Application.java and I am at the stage of wanting to make myApp run with setAllowsConcurrentRequestHandling(true), so how do you go about writing thread safe code? Admittedly I have not looked this subject up as I have only just read this post, but as I am seeking to go this way where does one start with such coding? Examples and/or docs would be appreciated


Jonathan F :^)

It would also seem that I don't particularly need to setAllowsConcurrentRequestHandling(true), although it might improve response times.

Denis Stanton
email@hidden
Home: (09) 533 0391
mobile: 021 1433622
_______________________________________________
webobjects-deploy mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-deploy
Do not post admin requests to the list. They will be ignored.

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger
_______________________________________________
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.

  • Prev by Date: Re: SSI and WO (was Re: Mixing HTML & WO Pages?)
  • Next by Date: Planting and growing JTrees
  • Previous by thread: Re: Session locks up and will not die - maybe a MySQL bug
  • Next by thread: Planting and growing JTrees
  • Index(es):
    • Date
    • Thread