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 generally has the following deployment descriptors:
- application-client.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 application clients deployed to the GlassFish Server, the file is named glassfish-application-client.xml.
The IDE provides a graphical deployment
descriptor editor for glassfish-application-client.xml 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 glassfish-application-client.xml:
- Double-click glassfish-application-client.xml to open it in the graphical editor.
The graphical editor opens in a Source Editor tab.
- Edit the deployment descriptor as necessary.
- Click XML to edit the XML source for glassfish-application-client.xml.
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