Editing an Enterprise Application's Deployment Descriptors

See Also

An enterprise application generally includes two types of . In Java EE 5 and 6 enterprise applications, the descriptor files are optional and you can use annotations to specify most deployment settings and resources. J2EE 1.4 enterprise applications will generally require the following descriptor files.

Entries in these files are automatically generated when you add a module to the enterprise application. Both deployment descriptors are XML files that are stored in the enterprise application's META-INF folder. You can edit both files in the Source Editor. The sun-application.xml file can also be edited in a visual editor, as described below.

To edit an enterprise application's deployment descriptors:

  1. In the Projects window, locate the project and expand its Configuration Files node. Alternatively, in the Files window, expand the project's src/conf subfolder.
  2. Double-click the node to open the file. The glassfish-application.xml file opens in the glassfish-application.xml Visual Editor. To open it in the Source Editor, right-click it in the Projects window and choose Edit.
  3. Edit the elements. You can use code completion features in the Source Editor to ensure that the elements are syntactically correct.
  4. (Optional) Right-click in the Source Editor and choose Validate from the contextual menu to verify that the document follows the XML schema for web deployment descriptors.
See Also
About Enterprise Applications
Creating an Enterprise Application
Adding a Module to an Enterprise Application
Adding an External Resource to an Enterprise Application

Legal Notices