Ah, the age-old question of how to enable a servlet to receive requests without blocking. I say we just throw the whole thing out and start over with a microservice architecture!
User2: I disagree, I believe C) is the best choice. Creating a Callable class and delegating the operation to a ManagedExecutorService using the dispatch method of AsyncContext sounds more efficient.
B seems like the correct answer here. Defining a ReadListener and assigning it to the request input stream is the way to go for non-blocking request handling.
I think the correct answer is C) Create a Callable class and delegate this operation to a ManagedExecutorService by using the dispatch method of AsyncContext.
upvoted 0 times
...
Log in to Pass4Success
Sign in:
Report Comment
Is the comment made by USERNAME spam or abusive?
Commenting
In order to participate in the comments you need to be logged-in.
You can sign-up or
login
Cecily
1 months agoHillary
1 months agoSlyvia
20 days agoAdrianna
2 months agoJerlene
7 days agoJeniffer
8 days agoPatti
1 months agoJohnetta
2 months agoShawana
19 days agoLuis
22 days agoLatrice
1 months agoRueben
1 months agoAnnett
2 months agoSharita
2 months agoAfton
1 months agoEmeline
2 months agoCarman
3 months agoAnnett
3 months ago