Saturday, February 14, 2009

Servlet 3.0 New Features

Web framework pluggability

Almost all of the Java based web frameworks build on top of servlets. Most web frameworks today plugin either through servlets or through web.xml. Annotations to define some of the servlets, listeners, filters will help in making this possible. Programatic access to web.xml and dynamic changes to configuration of a webapp are desired features. This JSR will aim to provide the ability to seamlessly plugin different web frameworks into web appplications.

Security

  • Ability to login / logout.
  • Self registration.
Annotations

use of annotations for the declarative style of programming. As part of the EoD effort the goal is to have zero configuration for web applications. The deployment descriptors would be used to override configuration.

Generics

Use generics in the API where possible. Use of other language enhancements where possible to improve the usability of the API.

Async and Comet support

Non-blocking input - The ability to receive data from a client without blocking if the data is slow arriving.

Non-blocking output - The ability to send data to a client without blocking if the client or network is slow.

Delay request handling - The comet style of Ajax web application can require that a request handling is delayed until either a timeout or an event has occurred. Delaying request handling is also useful if a remote/slow resource must be obtained before servicing the request or if access to a specific resource needs to be throttled to prevent too many simultaneous accesses.

Delay response close - The comet style of Ajax web application can require that a response is held open to allow additional data to be sent when asynchronous events occur.

Blocking - Non-blocking notification - The ability to notify push blocking or non-blocking events. Channels concept - The ability to subscribe to a channel and get asyncronous events from that channel. This implies being able to create, subscribe, unsubscribe and also apply some security restriction on who can join and who cannot.

Other Features:
  • Better welcome file support.
  • ServletContextListener ordering.
  • Container wide definition for init params.
  • File upload - progress listener - where to store interim and final file.
  • Clarifications of thread-safety issues.

0 comments:

Blog Widget by LinkWithin

JS-Kit Comments

  © Blogger template Newspaper III by Ourblogtemplates.com 2008

Back to TOP