Sun Java System Application Server Platform Edition 8.2 Administration Guide

About Persistence Manager Resources

ProcedureTo create a persistence manager resource

This feature is needed for backward compatibility. To run on version 7 of the Application Server, a persistent manager resource was required for applications with container-managed persistence beans (a type of EJB component). Using a JDBC resource instead is recommended.

  1. In the tree component, expand the Resources node.

  2. Under Resources, select the Persistence Managers node.

  3. On the Persistence Managers page, click New.

  4. On the Create Persistence Manager page, specify these settings:

    1. In the JNDI Name field, type a unique name.

      For example: jdo/mypm. Don’t forget the forward slash.

    2. In the Factory Class field, retain the default class provided with this release, or type in the class of another implementation.

    3. From the Connection Pool combo box, choose the connection pool that the new persistence manager resource will belong to.

    4. To disable the new persistence manager resource, deselect the Enabled check box.

      By default, the new persistence manager resource is enabled.

  5. Click OK.

Equivalent asadmin command

create-persistence-resource

ProcedureTo edit a persistence manager resource

  1. From the Edit Persistence Manager Properties tab, select the Add Property button.

    A new row is added to the Additional Properties table.

  2. Add the desired property and value.

ProcedureTo manage resource targets

  1. Select the Targets tab to change the targets (clusters and standalone server instances) where the resource resides.

  2. Select the checkbox for an existing target in the list, then click Enable to enable the resource for that target or Disable to disable the resource for that target.

  3. Click Manage Targets to add or remove targets to the list.

    In the Manage Targets page, select the desired target in the Available list on the left, and click Add to add it to the list of selected targets. Click Remove to remove a target from the Selected list.

  4. Click OK to save the changes to the available targets.

  5. Click Save.

ProcedureTo delete a persistence manager resource

  1. In the tree component, expand the Persistence Managers node.

  2. Select the Persistence Managers node.

  3. On the Persistence Managers page, select the checkbox for the persistence manager that you want to delete.

  4. Click Delete.

Equivalent asadmin command

delete-persistence-resource

ProcedureTo enable or Disable a persistence manager resource

  1. In the tree component, expand the Persistence Managers node.

  2. Select the checkbox for the resource to be enabled or disabled.

  3. Click Enable or Disable.