Skip Headers

# Writing to the ejb-jar.xml File

Previous

Next

To update the `ejb-jar.xml` file based on the current TopLink Workbench information, use this procedure:

Note: Use the EJB preferences to specify whether or not TopLink Workbench automatically updates the `ejb-jar.xml` file when you save the project.

Note: You can also write the information to a `.jar` file. TopLink Workbench automatically places the `ejb-jar.xml` file in the proper location (`META-INF/ejb-jar.xml`).

1. Choose Selected > Write Project to ejb-jar.xml from the menu.

   You can also right-click the project in the Navigator and choose Write Project to ejb-jar.xml from the context menu.

   - If the project does not currently contain an `ejb-jar.xml` file, the system prompts you to create a new file.

   - If the system detects that changes were made to the `ejb-jar.xml` file but not yet read into TopLink Workbench (for example, you changed the file outside TopLink Workbench), then the system prompts you to read the file before writing the changes.

See Also

  Working With the ejb-jar.xml File
  Working With Projects