Define the functionality for controlling the annotation references for the modules of Servlet 2.5 or later in web.xml. Note that for EJB 3.0 or later, you can only specify false in the metadata-complete attribute of the <ejb-jar> tag.
The following table describes the definition of the functionality for controlling the annotation references in the DD.
Table 12-13 Definition of the functionality for controlling the annotation references in the DD
Items | DD types | Specified tags and attributes | Settings |
---|---|---|---|
Servlet 2.5 or later | web.xml | metadata-complete attribute of the <web-app> tag | Specify true to control the annotation reference. Specify false to reference the annotations. |
EJB 3.0 or later | ejb-jar.xml | metadata-complete attribute of the <ejb-jar> tag | Specify false to reference the annotations. |
An example of settings is as follows:
<web-app metadata-complete="true" |
If the metadata-complete attribute of the DD is not specified and if the DD is also omitted, the operation is the same as when false is specified in the metadata-complete attribute.