This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
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: 923
    
    1



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 %) OCPJBCD(93%)
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18150
    
    8

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: 923
    
    1

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://aspose.com/file-tools
 
subject: Servlet 3.0 specs 2.3.3.4 doubt ?
 
Similar Threads
AsyncContext setTimeout doubt ?
doubt regarding complete() method of AsyncContext interface?
Issue with Asynchronous Servlet: onStartAsync(AsyncEvent event) never called
AsyncContext timeout
Async Listener and Request/Response objects