Skip Headers

# CMP Integration

Previous

Next

To enable TopLink CMP integration in BEA WebLogic Server, use the following procedure (assuming you have already installed TopLink):

1. Locate the persistence directory, located above the installation drive and root directory of your BEA WebLogic Server executable, as follows:

   Version | Persistence Directory (above the <WebLogic_INSTALL_DIR>)
   --- | ---
   6.1 (Service Pack 4) | `\wlserver6.1\lib\persistence`
   7.0 (Service Pack 2) | `\weblogic700\server\lib\persistence`
   8.1 | `\weblogic81\server\lib\persistence`

   Do one of the following:

   - Use a text editor to open the `persistence.install` file in the BEA WebLogic Server persistence directory, and add a new line that references the `TopLink_CMP_Descriptor.xml` file.

   - Replace the WebLogic `persistence.install` file with the TopLink persistence.install file found in the `<ORACLE_HOME>``\toplink\config` directory.

2. Add the following JAR files to the application server classpath:

       <ORACLE_HOME>\toplink\jlib\toplink.jar
       <ORACLE_HOME>\lib\xmlparserv2.jar

3. If necessary, migrate your CMP application using the TopLink migration tool ("Migrating BEA WebLogic Persistence to OC4J TopLink Persistence").

4. Ensure that all necessary deployment descriptor files are in place (see "Creating TopLink Files for Deployment" and "Packaging a TopLink Application").

5. Optionally, consider the EJB customization options that TopLink provides ("Configuring Miscellaneous EJB Options").

6. Start the container, and then start the TopLink application. Where supported, use a startup script to start the server. If you write your own startup script, ensure that the classpath includes the files listed in Step 2.