• 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
allowsConcurrentRequestHandling, strange behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

allowsConcurrentRequestHandling, strange behavior


  • Subject: allowsConcurrentRequestHandling, strange behavior
  • From: Atli Páll Hafsteinsson <email@hidden>
  • Date: Fri, 22 Oct 2010 08:52:51 +0000

Hi all

I am experiencing strange behavior when enabling concurrent request
handling in my app, if the requests com to a direct action only one
request is handle at a time and if they come to a component they seem
to be handled in batches, the first request blocks every other but the
after that has finished the app handles other requests concurrently.
Made a small app to test this with the following code:

try {
			System.out.println( "Putting to sleep: " +
Thread.currentThread().getName() );
			Thread.currentThread().sleep( 20000 );
			System.out.println( "Waking up: " + Thread.currentThread().getName() );
		}
		catch( Exception e ) {
			System.out.println( "Forced to catch the Exception, 'cause Java is stupid" );
		}

When 4 request are done almost at the same time to a direct action it
prints out:

Putting to sleep: WorkerThread0
Waking up: WorkerThread0
Putting to sleep: WorkerThread0
Waking up: WorkerThread0
Putting to sleep: WorkerThread0
Waking up: WorkerThread0
Putting to sleep: WorkerThread0
Waking up: WorkerThread0

The requests are ran one at a time.


But when the code is in a component it prints out:

Putting to sleep: WorkerThread0
Waking up: WorkerThread0
Putting to sleep: WorkerThread15
Putting to sleep: WorkerThread0
Putting to sleep: WorkerThread14
Waking up: WorkerThread15
Waking up: WorkerThread0
Waking up: WorkerThread14

That is the first request blocks all others but after that the
remaining 3 are ran at the same time.

Have set WOAllowsConcurrentRequestHandling=true and overridden
allowsConcurrentRequestHandling() in Application to return true.

Any logical explanation?

Using:
Eclipse 3.6
Wolips 3.6.6210
Latest wonder from the build server
WebObjects version = 5.4.3
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.version=16.3-b01-279

Atli Páll Hafsteinsson
email@hidden
 _______________________________________________
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

  • Follow-Ups:
    • Re: allowsConcurrentRequestHandling, strange behavior
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: OS X Java Deprecation & JVM Source Code
  • Next by Date: WebObjects RPM package for Linux
  • Previous by thread: Job postings on wocommunity.org
  • Next by thread: Re: allowsConcurrentRequestHandling, strange behavior
  • Index(es):
    • Date
    • Thread