Wednesday, June 3, 2009

Servlet 3.0 at java one

Just popping in for a few comments. If anyone saw the servlet 3.0 presentation, you'd know Jan, Rajiv, and Greg did a great job. I did notice a point of disagreement with greg. He mentioned that the simplest case of async servlets is startAsync followed by a dispatch to generate the response. I would argue that startAsync/complete is the simplest case. This requires no re-dispatch and a re-dispatch should not be needed unless you need something like jsp to do more complex content generation.

Also, it was not mentioned that the web fragment ordering effects and restricts annotation scanning as far as I recall. This is important to be able to prevent "rogue" framework jars from putting out servlets that can service requests without your knowledge