Skip Headers

# Using the Persistence Layer

Previous

Next

At run time, your application uses the TopLink metadata (see "Understanding TopLink Metadata").

For a non-CMP project, your application loads a `session.xml` file at run time using the session manager (see Acquiring and Using Sessions at Run Time). The `session.xml` file contains a reference to the mapping metadata `project.xml` file. Using the session, your application accesses the TopLink runtime and the `project.xml` mapping metadata.

For a CMP project, the metadata required is dependent upon the J2EE application server you deploy your application to (see "Creating TopLink Files for Deployment"). All application servers require an `ejb-jar.xml` and a TopLink project XML file. The session configuration is dependent on the specific J2EE application server.