Skip Headers

# Session Customization

Previous

Next

You can customize a session at run time by specifying a session customizer–a Java class that implements the `oracle.toplink.tools.sessionconfiguration.SessionCustomizer` interface and provides a default (zero-argument) constructor.

Since the `sessions.xml` file is not used for CMP projects, use `oracle.toplink.ejb.cmp.DeploymentCustomization` interface as a customizer when creating a CMP project to specify your database login information.

You use a session customizer to customize a session at run time through code API similar to how you use an amendment method to customize a descriptor (see "Amendment and After-Load Methods").

For more information, see "Configuring Customizer Class".