Skip Headers

# Configuring persistence-descriptor Entries

Previous

Next

Within the `weblogic-ejb-jar.xml` file, each bean must have a `persistence-descriptor` entry with subentries, as follows:

- Configure the `persistence-descriptor` entry with subentries that indicate TopLink is available and should be used:

  - If you deploy to WebLogic 6.1 (Service Pack 4), include a `persistence-type` element and a `persistence-use` element. Both elements require a `type-identifier` and a `type-version` tag. Table: WebLogic type-identifier Settings lists the options for the `type-identifier` tag, and Table: WebLogic type-version Settings lists the options for the `type-version` tag.

  - If you deploy to WebLogic 7.0 or 8.1, include a `persistence-use` element with a `type-identifier` and a `type-version` tag. Table: WebLogic type-identifier Settings lists the options for the `type-identifier` tag, and Table: WebLogic type-version Settings lists the options for the `type-version` tag.

- If you use WebLogic 6.1, add the element `type-storage` to the `persistence-type` element, and set it to `META-INF\toplink-ejb-jar.xml`.

- If you use WebLogic 7.0 or 8.1, add the element type-storage to the persistence-use element, and set it to `META-INF\toplink-ejb-jar.xml`. Set the `enable-call-by-reference` element to `TRUE` to enable call-by-reference:

      <weblogic-enterprise-bean>
          <ejb-name>AccountBean</ejb-name>
          ...
              <enable-call-by-reference>True</enable-call-by-reference>
          ...
      </weblogic-enterprise-bean>

WebLogic type-identifier Settings

EJB Version | XML Elements
--- | ---
2.0 | `<type-identifier>TopLink_CMP_2_0</type-identifier>`

WebLogic type-version Settings

WebLogic EJB Version | XML Elements
--- | ---
6.1 | `<type-version>4.0</type-version>`
7.0 | `<type-version>4.5</type-version>`
8.1 | `<type-version>9.0.4</type-version>`