Skip Headers

# CMP Applications and Session Metadata

Previous

Next

For a CMP project, how you specify session metadata is dependent upon the J2EE application server to which you are deploying your application:

- For OC4J, the session configuration is done in the `orion-ejb-jar.xml` file. You can specify the `data-source`, some common session options, and a session customizer class (see "OC4J and the orion-ejb-jar.xml File"). In this case, you name the TopLink project XML file as `toplink-ejb-jar.xml` (see "project.xml File")

- For BEA WebLogic Server, the session configuration is done in the `toplink-ejb-jar.xml` file. You can specify the `data-source`, some common session options, and a session customizer class (see "toplink-ejb-jar.xml File").

- For IBM WebSphere application server, the session configuration is done in a `sessions.xml` file which must be named `toplink-ejb-jar.xml` (see Creating Sessions).

Note: If you are using EJB 3.0, you cannot use annotations to specify session configuration. You must provide a `sessions.xml` file, if one is applicable to your application type.