Persistence Managers

The persistence manager is the component responsible for the persistence of the entity beans installed in the container. To use the persistence manager, create a persistence manager definition, and register the definition to the Sun ONE Application Server instance. More than one J2EE component can use the same persistence manager.

Creating a Persistence Manager Definition

To create a persistence manager definition:

  1. In the Explorer's Runtime tab, expand the Server Registry and expand Installed Servers and expand Sun ONE Application Server 7 node.

    note  If you do not see any Administration Server nodes, the Administration Server of the Sun ONE Application Server must be added under the Installed Servers subnode of the Server Registry node. See here for more information.

  2. Right-click the Unregistered Persistence Managers node and choose Add a Persistence Manager.
  3. Enter properties for the persistence manager definition. See Persistence Manager Property Sheet for more information.
  4. Once the definition is created, you must register it to the application server instance where you want to create the persistence manager. See Registering a Persistence Manager Definition for more information.

Registering a Persistence Manager Definition

To register a persistence manager definition to an application server instance:

  1. In the Explorer's Runtime tab, expand the Server Registry and expand Installed Servers and expand Sun ONE Application Server 7 and expand Unregistered Persistence Managers node.
  2. Select the persistence manager definition that you want to register and choose Register. The Select Server to Register to dialog box opens.
  3. Select the application server instance where you want to create the persistence manager and click Register. The Information dialog box opens.
  4. Click OK to close the Information dialog box.
  5. Click OK to close the Select Server to Register to dialog box.
  6. To see the new Persistence Manager, expand the application server instance and expand Registered Persistence Managers node.

Deleting a Persistence Manager

To delete a persistence manager from an application server instance:

  1. In the Explorer's Runtime tab, expand the Server Registry and expand Installed Servers and expand Sun ONE Application Server 7 and expand Administration Server and expand application server instance and expand Registered Persistence Managers node.
  2. Right-click the persistence manager and choose Delete.
  3. When the application server instance is restarted, the persistence manager is removed. See Server Instance for stopping and starting the application server instance.

See also
   Persistence Manager Property Sheet
Registering a Resource
Server Instance

Legal Notices