aspose 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
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
Bartender

Joined: Jul 19, 2004
Posts: 5535
    
  13

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
http://www.javaroe.be/
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 ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which method is used to start a new asynchronous request/response cycle?