Hello,
I need your expert opinion and clarification regarding the following
extract from the Servlet 3.0 Specification:
1.6.2 Processing annotations
In Servlet 2.5, metadata-complete only affected the scanning of
annotations at
deployment time. The notion of web-fragments did not exist in servlet
2.5. However
in servlet 3.0 metadata-complete affects scanning of all annotations
and webfragments
at deployment time. The version of the descriptor MUST not affect which
annotations you scan for in a web application. An implementation of a
particular
version of the specification MUST scan for all annotations supported in
that
configuration, unless metadata-complete is specified.
Does this mean that if we have a web application with web.xml with
version attribute 2.5, a servlet annotated with @WebServlet and
metadata-complete is set to false,
then should a Servlet 3.0 compliant Web Container process this
@WebServlet annotation?
Thanks!
Regards,
Maria