| Author |
Which method is used to start a new asynchronous request/response cycle?
|
Joey Sanchez
Ranch Hand
Joined: Jun 23, 2011
Posts: 70
|
|
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: 4351
|
|
|
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: 20
|
|
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: 70
|
|
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: 20
|
|
|
No, no way to get it ...
|
 |
 |
|
|
subject: Which method is used to start a new asynchronous request/response cycle?
|
|
|