wood burning stoves 2.0*
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 Java 8 in Action this week in the Java 8 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
Bartender

Joined: Jul 19, 2004
Posts: 4926
    
  10

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: 22

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: 22

No, no way to get it ...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Which method is used to start a new asynchronous request/response cycle?
 
Similar Threads
Restricting Sub-class declaration
Java getch()?
What's the Book Prize for this Forum?
Type inheritance
how to create array using linked list....