Editing an Enterprise Application Client's Deployment Descriptors
See Also
Deployment descriptors are XML-based text files whose elements describe how
to assemble and deploy a module to a specific environment. The elements also
contain behavioral information about components that is not included directly in code.
An application client has the following deployment descriptors:
- application.xml. The general Java EE deployment descriptor that
configures deployment settings on any Java EE compliant implementation.
- 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 other application servers, you have to write the
server-specific deployment descriptors yourself.
The deployment descriptors for an application client are located in the project's
src/conf folder. You can access the deployment descriptors from the
project's Configuration Files node.
To edit application-client.xml:
- In the Projects window, expand the Configuration Files node for your application
client project.
- Double-click application-client.xml to open it in the Source Editor.
You have to edit the XML code by hand using the IDE's XML code completion and validation. There is no graphical editor for
application-client.xml.
To edit sun-application-client.xml:
- Double-click sun-application-client.xml to open it in the graphical editor.
The graphical editor opens in a Source Editor tab. The editor contains a tree
view of the module's contents on the left and property editors for each item
on the right.
- Edit the deployment descriptor as necessary. See the following topics for
more information:
- Right-click sun-application-client.xml and choose Edit to edit the deployment
descriptor's XML source. You can only open in this mode if the file is not
already open in the visual editor. The Source Editor provides code completion
and validation for all XML files.
To edit the server-specific deployment descriptor for any other application
server:
- Double-click the deployment descriptor node.
The IDE opens the XML source of the deployment descriptor in the Source Editor.
- If you enter any XML syntax errors the IDE automatically alerts you. To
fully ensure your changes have not caused any errors, you should verify the
application client.
- See Also
- About Enterprise Application Clients
- Creating an Enterprise Application Client
- Adding a Module to an Enterprise Application
- Calling an Enterprise Bean
- Verifying an Enterprise Application
Legal Notices