With Application Server, you can use the file defining the DD and the Cosminexus Application Server-specific information (cosminexus.xml) to define an application.
The following table describes the range of the DD supported in Application Server.
Table 11-2 Range of the DD supported in Application Server
DD types | Version | Support |
---|
application.xml | 1.2 | C# |
1.3 | C# |
1.4 | Y |
5.0 | Y |
6.0 | Y |
No DD (5.0) | Y |
No DD (6.0) | Y |
ejb-jar.xml | 1.1 | C |
2.0 | Y |
2.1 | Y |
3.0 | Y |
3.1 | Y |
No DD (3.0) | Y |
No DD (3.1) | Y |
web.xml | 2.2 | C |
2.3 | Y |
2.4 | Y |
2.5 | Y |
3.0 | Y |
No DD (2.5) | Y |
No DD (3.0) | Y |
ra.xml | 1.0 | Y |
1.5 | Y |
- Legend:
- Y: Supported.
- C: Supported, but the DD version is rewritten during import.
- #
- If the application.xml version is 1.2 or 1.3, the version during import is specified as 1.4, even if <context-root> is not unique in the EAR file.
- Note
- Elements that can be specified in ejb-jar.xml version 3.0
- You can specify EJB-JAR <display-name>, the interceptor-related elements, and the application exception-related elements. If you specify other elements and attributes, the value will be ignored.
- You can typically specify the following elements:
- /ejb-jar/display-name
- /ejb-jar/assembly-descriptor/interceptor-binding, and the elements under this element
- /ejb-jar/assembly-descriptor/application-exception, and the elements under this element
- If you specify multiple interceptor-binding elements with * (asterisk) in the ejb-name element, only the contents coded at the top are used. The second and subsequent contents are ignored.
- If you specify multiple <interceptor-binding> tags with matching <ejb-name>, <named-method>, and the elements under them, only the contents coded at the top are used. The second and subsequent contents are ignored.
- Elements that can be specified in ejb-jar.xml version 3.1
- With ejb-jar.xml version 3.1, you can specify the following elements in addition to the elements that can be specified with ejb-jar.xml version 3.0:
With Application Server, the DD and cosminexus.xml can be managed separately and included in the J2EE applications. By including cosminexus.xml in a J2EE application, the property file settings need not be specified after the application is imported. Therefore, after the applications containing cosminexus.xml are imported, the applications can be started and used as are.
Also, with Application Server, you can omit the DD (application.xml, ejb-jar.xml, and web.xml) that defines the application attributes.
The method of creating and operating the applications containing cosminexus.xml is described in 11.3 and later sections. Also, the omission of the DD is described in 11.4 and later sections.