期待了許久的JSR-315(Servlet 3.0)規(guī)范終于Public Review了,這下本人估計(jì)就要熱鬧了。Public Review往往是帶來最大的討論與爭議的過程。不過還是希望JSR-315規(guī)范能盡早的敲定,讓我們這些期盼以久的開發(fā)人員能使用這些新特征。
下面是官方討論的兩個(gè)大點(diǎn):
1. Annotations and pluggability
2. Asychronous Servlets
本人較關(guān)心的也是Asychronous Servlets這塊,所以分享一些信息給大家.
Gregw -- 3.0規(guī)范的實(shí)現(xiàn)作者的一個(gè)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 閱讀(1856)
評論(0) 編輯 收藏 所屬分類:
最新開源動態(tài)