uCosminexus Application Server, Common Container Functionality Guide
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" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> : </web-app> |
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.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.