# Deployment Descriptor Visual Editor: Environment

The deployment descriptor visual editor lets you edit the platform-specific deployment descriptor for the GlassFish application server as defined in `glassfish-web.xml` or `glassfish-application-client.xml`.

The deployment descriptor is found under the project's Configuration Files node in the Projects window and clicking the Environment tab in the visual editor

If any configuration information for the project is not specified in this server-specific descriptor file, it defaults to a corresponding setting in the general descriptor file for the application, if an equivalency exists.

The Environment tab contains the following sections for editing the deployment descriptor properties of reference elements. If no reference element exists, you can create new references elements to the descriptor file by selecting the section title and then clicking the button to add a new reference element. When you create a new reference element it is visible as a node under the section. The IDE generates a default reference name.

EJB References

Element | Description
--- | ---
EJB Reference Name | Displays the EJB Reference name.
JNDI Name | Specifies the JNDI name for the EJB reference. This field should not be empty.

Resource References

Element | Description
--- | ---
Resource Reference Name | Displays the Resource Reference name.
JNDI Name | Specifies the JNDI name for the Resource reference.
Principal Name | Specifies the principal name for the Resource reference. (Optional) If you enter a principal name, you must also provide a password.
Principal Password | Specifies the Principal password. Required if the Principal name is provided.

Resource Environment References

Element | Description
--- | ---
Resource Environment Reference Name | Displays the Resource Environment Reference name.
JNDI Name | Specifies the JNDI name for the Resource Environment reference. This field should not be empty.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.