期待了許久的JSR-315(Servlet 3.0)規范終于Public Review了,這下本人估計就要熱鬧了。Public Review往往是帶來最大的討論與爭議的過程。不過還是希望JSR-315規范能盡早的敲定,讓我們這些期盼以久的開發人員能使用這些新特征。
下面是官方討論的兩個大點:
1. Annotations and pluggability
2. Asychronous Servlets
本人較關心的也是Asychronous Servlets這塊,所以分享一些信息給大家.
Gregw -- 3.0規范的實現作者的一個Blog
http://blogs.webtide.com/gregw/entry/servlet_3_0_public_review
- A new ASYNC DispatcherType for redispatched asynchronous requests
- The isAsyncStarted() method is false when a request is redispatched.
- An
IllegalStateException is thrown is startAsync() or
startAsync(request.response) are called if getReader() or
getOutputStream() have been called. This restricts asynchronous
handler to the simpler cases.
- If asynchronous mode was
started with startAsync(request,response), then it is an
IllegalStateException to use any of the forward(...) methods on
AsyncContext. This avoids the complication of redispatching wrappers,
but allows wrappers to be used by asynchronous handlers.
Good Luck!
Yours Matthew!
posted on 2008-12-25 08:44
x.matthew 閱讀(1853)
評論(0) 編輯 收藏 所屬分類:
最新開源動態