Skip Headers

# ejb-jar.xml File

Previous

Next

Each EJB module contains one `ejb-jar.xml` file that describes all the EJB in the module.

Most IDEs provide facilities to create the `ejb-jar.xml` file. For more information about generating this file from your IDE, see your IDE documentation.

If you build an EJB application, Oracle recommends that you use TopLink Workbench to build the `ejb-jar.xml` file. Because TopLink Workbench can both read and write the `ejb-jar.xml file`, you can use TopLink Workbench to maintain your `ejb-jar.xml` file in the following ways:

- When you change the file manually outside of TopLink Workbench, reimport the `ejb-jar.xml` file into TopLink Workbench project to refresh the project.

- When you change the TopLink Workbench project, TopLink Workbench updates the `ejb-jar.xml` file automatically when you save the project.

For more information about managing the `ejb-jar.xml` file in TopLink Workbench, see "Working With the ejb-jar.xml File" for more information.

Note:

If you are using EJB 3.0, you can use annotations to specify most of what you formerly specified in the `ejb-jar.xml` file. To override annotations or specify options not supported by annotations, you can still provide an `ejb-jar.xml` file in your EJB 3.0 application. For more information on what annotations are currently supported, see Oracle Containers for J2EE Enterprise JavaBeans Developer's Guide.