Configuring EJB 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 not included directly in code.

For EJB modules, there are two types of deployment descriptors:

To edit ejb-jar.xml:

  1. In the Projects window, expand the Configuration Files node for your EJB module project.
  2. Double-click ejb-jar.xml to open it in the graphical editor.
    The graphical editor opens in a Source Editor tab. The editor contains a general Module Details section and a section for each of the enterprise beans in your module.
  3. Edit the deployment descriptor as necessary. See the following topics for more information:
  4. (Optional) Click XML at the top of the deployment descriptor editor to view and edit the deployment descripor's XML code.
  5. Choose File > Save to save your changes.

To edit sun-ejb-jar.xml:

  1. Double-click sun-ejb-jar.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.
  2. Edit the deployment descriptor as necessary. See the following topics for more information:
  3. Choose File > Save to save your changes.
  4. Right-click sun-ejb-jar.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:

  1. Double-click the deployment descriptor node.
    The IDE opens the XML source of the deployment descriptor in the Source Editor.
See Also
About Deployment Descriptors
About Configuring EJB Modules
Configuring Web Application Deployment Descriptors
Managing Container-Managed Relationships
Verifying an Enterprise Application
Refactoring an Enterprise Bean

Legal Notices