posted 7 years ago
On page 200 of Chapter 8, Question 4 ask "When starting a new asynchronous request, under what conditions will always be an exception thrown?".
option "A" is given as wrong answer, but I have my doubts. It says: "Any Attempt to start a second aynchronous cycle in the same client request".
On page 191 of the same chapter it explains that "To prevent a dispatching loop (Particularly When the no-argument dispatch () is used), any one of the dispatch methods can only be called once in the same aynchoronus cycle (started by the startAsync () invocation on ServletRequest). Any aditional dispatch invocation, Within the same cycle, will cause an IllegalStartException to be thrown on the second or subsequent Attempts.
Remember that answer "A" says (in page 200): "in the same client", not second nor other, (I mean). I think that answer A cause an exception. Is this correct? May be this answer wrong?
Thanks