This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes is there error in servlet 3.0 specification ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "is there error in servlet 3.0 specification ?" Watch "is there error in servlet 3.0 specification ?" New topic
Author

is there error in servlet 3.0 specification ?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 868

please have a look at page 12 where the specification talks about asynchronous servlet processing. following is a quote from the specs

public AsyncContext startAsync(ServletRequest req,
ServletResponse res). This method puts the request into asynchronous
mode and initializes it’s AsyncContext with the given request and response
objects and the time out returned by getAsyncTimeout


i have checked the api docs for AsyncContext and there is no method like getAsyncTimeout instead there is getTimeout. also i'm using latest maintainence release of the specifications. please confirm ?

Regards
Gurpreet


OCPJP 6(100 %) OCEWCD 6(91 %)
Frits Walraven
Rancher

Joined: Apr 07, 2010
Posts: 1042

I think that is indeed a mistake it should have been getTimeout()

Regards,
Frits
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: is there error in servlet 3.0 specification ?
 
Similar Threads
Issue with Asynchronous Servlet: onStartAsync(AsyncEvent event) never called
help in asynchronous context
AsyncContext timeout
Async Listener and Request/Response objects
when is the AsyncContext.complete method called when dispatching request to the container ?