Java EE Deployment Files (application.xml)

Source: Internet
Author: User
Application|j2ee|xml <application>


the application element is the root element of a Java application Deployment descriptor.








<icon>


the icon element contains a small-icon and a LARGE-ICON element which specify the location within the application fo R a small and large image used to represent the application in a GUI tool.








<small-icon>path/to/icon.gif</small-icon>


the Small-icon element contains the location within the application of a file containing a small (16x16 pixel) icon Image. The image must is either GIF or JPEG format and the filename must end with the extension of ". gif" or ". jpg".








<large-icon>path/to/icon.gif</large-icon>


The Large-icon element contains the location within the application of a file containing a large (32x32 pixel) icon image. The image must is either GIF or JPEG format and the filename must end with the extension of ". gif" or ". jpg".











<display-name>the name.</display-name>


the Display-name element specifies an application name. The application name is assigned to the application by the application assembler and are used to identify the application T o The deployer at deployment time.








<description>a description.</description>


The description element provides a human readable description of the application. The description element should include any information this application assembler wants to provide the deployer.








<module>


The module element represents a single EE module and contains an EJB, Java, or Web element, which indicates the module T Ype and contains a path to the module file, and a optional ALT-DD element, which specifies a optional URI to the Post-as sembly version of the deployment descriptor. The application deployment descriptor must have one module element for each Java module in the application package.








<ejb>pathToEJB.jar</ejb>


the EJB element specifies the URI of a ejb-jar, relative to the top level of the application package.








<java>pathToClient.jar</java>


the Java element specifies the URI of a Java application client module, relative to the top level of the application Package.








<web>


The Web element contains the Web-uri and Context-root of a Web application module.








<web-uri>pathTo.war</web-uri>


the Web-uri element specifies the URI of a Web application file, relative to the top level of the application Packag E.








<context-root>thedir/</context-root>


the Context-root element specifies the context root of a Web application.











<alt-dd>path/to/dd</alt-dd>


the ALT-DD element specifies a optional URI to the post-assembly version of the deployment file for a PA Rticular Java EE module. The URI must specify the full pathname of the deployment descriptor file relative to the application ' s root directory. If ALT-DD is isn't specified, the deployer must read the deployment descriptor from the default location and file name Requi Red by the respective component specification.











<security-role>


The security-role element contains the definition of a security role which is global to the application. The definition consists of a description of the security role, and the security role name. The descriptions at this level override those the component level Security-role definitions and must is the description s tool display to the deployer.








<description>a description.</description>


The description element provides a human readable description of the application. The description element should include any information this application assembler wants to provide the deployer.








<role-name>nameOfRole</role-name>


the name of the role.




















Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.