About Question enthuware.jwpv6.2.580 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
dbarbeito

About Question enthuware.jwpv6.2.580 :

Post by dbarbeito »

I don't agree with the question answers. It states that third answer is false In my opinion is also true.

"A synchronous servlet is allowed to dispatch a request to servlet that supports asynchronous processing."

This is allowed because the servlet that "supports" asynchronous processing can be acting as a synchronous servlet. It only will throw an IllegalStateException if it tries to start and asynchronous cycle.

See Section 2.3.3.3 of the Servlet 3.0 specification

"Dispatching from a synchronous servlet to an asynchronous servlet would be illegal.
However the decision of throwing an IllegalStateException is differed to the
point when the application calls startAsync. This would allow a servlet to either
function as a synchronous or an asynchronous servlet."

What is your opinion?

Best wishes,
Denis

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.580 :

Post by admin »

You are right. The option has been modified accordingly.

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests