Recommended: Sing it, brah! 5 fabulous songs for developers
JW's Top 5
Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs
Page 5 of 5
Because of the maintenance review nature of the Servlet 2.5 release, several larger ideas had to be postponed until the next review phase. Among the ideas postponed:
After this article was first published, Sun issued a Servlets 2.5 MR2 (second manufacturing release) that includes a few changes from the first manufacturing release:
full on the <web-app> root was renamed to the more descriptive metadata-complete. This change has been incorporated into the above text.
getContextPath() was added to ServletContext. Formerly context path information was only available in the request object, following the logic that the same context object
might be bound to multiple paths so you'd only know the path at request time. However, no known servers have utilized the
multiple path binding option, and a context being able to report its path is often convenient, so the method got the green
light. Should it ever happen that a context be bound to multiple paths, it will return its "preferred" path.
If you look at the Servlet 2.5 changes apart from annotations, the new release does a nice job of giving web.xml a little syntactic sugar, of removing a few restrictions that were getting in the way, and of clarifying edge case behavior to enable more powerful and portable component-based Webpages.
The effect of annotations in Servlet 2.5 looks more dramatic. It's important to remember that servlets themselves don't define any new annotation types, and simple servlet containers don't even have to support annotations. Yet servlets authored for a JEE 5 environment will see their code change a lot from the annotation types introduced by common annotations and the EJB 3.0 and JAX-WS 2.0 specifications, and these will have a big impact on how servlets manage external resources, object persistence, and EJB components.
Read more about Enterprise Java in JavaWorld's Enterprise Java section.
Archived Discussions (Read only)