Skip Headers

Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide 10g Release 3 (10.1.3) B14428-01 |
| Home | Solution Area | Contents | Index

Previous | Next |

# Configuring the toplink-ejb-jar.xml File

This section describes:

- Creating toplink-ejb-jar.xml During Migration

- Creating toplink-ejb-jar.xml with TopLink Workbench

For more information, see:

- "What is the toplink-ejb-jar.xml File?"

- "OC4J and the toplink-ejb-jar.xml File" in the Oracle TopLink Developer's Guide

## Creating toplink-ejb-jar.xml During Migration

EJB 2.1 only; When you migrate an Orion CMP application to TopLink persistence (see "Migrating to the TopLink Persistence Manager"), the TopLink migration tool automatically creates a `toplink-ejb-jar.xml` file for you.After generation, you can use the TopLink Mapping Workbench to customize and re-export (see "Understanding the TopLink Workbench" in the Oracle TopLink Developer's Guide).

## Creating toplink-ejb-jar.xml with TopLink Workbench

For EJB 3.0 projects, if the only JDK 1.5 language extension that your entity classes use are annotations, you can use the TopLink Workbench to create and configure a `toplink-ejb-jar.xml` file. Oracle recommends using the TopLink Workbench to create and configure this file.

For EJB 2.1 projects, you use the TopLink Workbench to configure persistence properties in the `toplink-ejb-jar.xml` file. When you migrate an Orion CMP application to TopLink persistence (see "Migrating to the TopLink Persistence Manager"), the TopLink migration tool automatically creates a TopLink Workbench project for you. You can use the TopLink Workbench project to create a `toplink-ejb-jar.xml` file.

For more information, see:

- "Understanding the TopLink Workbench" in the Oracle TopLink Developer's Guide

- "Creating project.xml with TopLink Workbench" in the Oracle TopLink Developer's Guide.