aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Servlet 3.0 specs 2.3.3.4 doubt ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Servlet 3.0 specs 2.3.3.4 doubt ?" Watch "Servlet 3.0 specs 2.3.3.4 doubt ?" New topic
Author

Servlet 3.0 specs 2.3.3.4 doubt ?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 867



this is in context of Asynchronous processing.

the specs says that


Thread safety 2.3.3.4
Be aware that other than the
startAsync, and complete methods, the request and response objects are not
thread safe.


i'm not able to understand what it means ? what does other than startAsync and complete methods means ?


OCPJP 6(100 %) OCEWCD 6(91 %)
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16479
    
    2

In English, "Other than X" means that "X" is excluded from whatever follows in the sentence.

So in this case it means that in all methods except for startAsync and complete, those objects are not thread-safe.
gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 867

thanks for the reply Paul. but my problem was not in the wording/english. my doubt was that "what does inside the methods(othe than startAsync, complete) the objects are not thread safe means ? can you tel me a scenario when the request/response objects are accessed by more than 1 thread concurrently ?
regards
gurpreet
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Servlet 3.0 specs 2.3.3.4 doubt ?
 
Similar Threads
Issue with Asynchronous Servlet: onStartAsync(AsyncEvent event) never called
AsyncContext setTimeout doubt ?
doubt regarding complete() method of AsyncContext interface?
AsyncContext timeout
Async Listener and Request/Response objects