The general J2EE deployment descriptor that configures deployment settings
on any J2EE-compliant implementation. It describes the enterprise application,
which components it uses, how the components relate to each other, and which
resources they use. The general enterprise application deployment descriptor
is called application.xml.
The server-specific deployment descriptor that configures deployment settings
for the application server to which you are deploying. For the Sun Java System
Application Server, the IDE provides a graphical deployment descriptor editor
and automatically updates the deployment descriptor as you edit your files.
For all other application servers, you have to write the server-specific deployment
descriptors yourself.
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:
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.
Double-click the node to open the file. The sun-application.xml file opens
in the sun-application.xml Visual Editor.
To open it in the Source Editor,
right-click it in the Projects window and choose Edit.
Edit the elements. You can use code completion features in the Source Editor
to ensure that the elements are syntactically correct.
(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.