File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Which method is used to start a new asynchronous request/response cycle? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Which method is used to start a new asynchronous request/response cycle?" Watch "Which method is used to start a new asynchronous request/response cycle?" New topic
Author

Which method is used to start a new asynchronous request/response cycle?

Joey Sanchez
Ranch Hand

Joined: Jun 23, 2011
Posts: 86

OCEJWCD Study Companion Third Edition, pg 200 question 3
The answers of this question are
A. ServletContext.newAsync()
B. ServletContext.startAsync()
C. ServletRequest.newAsync()
D. ServletRequest.runASync()
E. ServletRequest.getAsyncContext()

And the correct regards to the book is C, but I can find that method in the API.

The explanation of the book is that the method returns an AsyncContext but is executed on ServletRequest(not ServletContext).

Is it possible that the answer is ServletRequest.startAsync() and the book has a mistake?
Roel De Nijs
Sheriff

Joined: Jul 19, 2004
Posts: 7054
    
  28

I can only find ServletRequest.startAsync() in the JavaEE 6 API. So yes, I think the book has a mistake


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
OCAJP 7
Sebastien French
Greenhorn

Joined: Jan 04, 2012
Posts: 26

Hi,

yes it's a mistake : http://www.coderanch.com/t/600322/java-Web-Component-SCWCD/certification/OCEJWCD-study-companion-errors
Joey Sanchez
Ranch Hand

Joined: Jun 23, 2011
Posts: 86



Have you got the complete Code Bundle of the book? because when I read chapter 18 it talks about a lot of code snippets and I couldn't find any!

Code bundle
Sebastien French
Greenhorn

Joined: Jan 04, 2012
Posts: 26

No, no way to get it ...
 
Don't get me started about those stupid light bulbs.
 
subject: Which method is used to start a new asynchronous request/response cycle?
 
It's not a secret anymore!