Skip Headers

# Configuring persistence-manager Entries

Previous

Next

If you are using TopLink as your OC4J persistence manager, the default persistence manager in 10g (10.1.3.1.0), you can configure the `persistence-manager` subentry (see Table: orion-ejb-jar.xml File persistence-manager Entries) in the `orion-ejb-jar.xml` file. For more information on the scenarios in which you would want to modify `orion-ejb-jar.xml`, see "OC4J and the orion-ejb-jar.xml File".

If you are not using TopLink as your OC4J persistence manager, do not modify the `persistence-manager` subentries.

OC4J 10g (10.1.3.1.0) and later do not support `entity-deployment` attribute `pm-name`. Use `persistence-manager` attribute `name` instead (see Table: orion-ejb-jar.xml File persistence-manager Entries). When OC4J parses the `orion-ejb.jar.xml` file, if it finds a `pm-name` attribute, OC4J ignores its value and logs the following warning message:

WARNING: Use of `pm-name` is unsupported and will be removed in a future release. Specify pm usage using `<persistence-manager>` 'name' instead.

orion-ejb-jar.xml File persistence-manager Entries

Entry | Description
--- | ---
`name` | The name of the persistence manager to use. Set this value to `toplink`. If you set the `name` property to `toplink`, you may also configure `pm-properties` (see "Configuring pm-properties").
`class-name` | Do not configure this attribute. If `name` is set to `toplink`, then `class-name` is set correctly by default.

`descriptor`

This property applies only when `name` is set to `toplink`.

If you export your TopLink mapping metadata to a deployment XML file, set this property to the name of the deployment XML file (default: `toplink-ejb-jar.xml`).

Do not set this property if you are using a TopLink project class instead of a mapping metadata file (see `project-class` in Table: orion-ejb-jar.xml File persistence-manager Subentries for pm-properties).