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:
-
In the Explorer's Runtime tab,
expand the Server Registry
Installed Servers
Sun ONE Application Server 7 node.
|
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.
|
-
Right-click the Unregistered Persistence Managers node
and choose Add a Persistence Manager.
-
Enter properties for the persistence manager definition.
See Persistence Manager Property Sheet
for more information.
-
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:
-
In the Explorer's Runtime tab,
expand the Server Registry
Installed Servers
Sun ONE Application Server 7
Unregistered Persistence Managers node.
-
Select the persistence manager definition
that you want to register and choose Register.
The Select Server to Register to dialog box opens.
-
Select the application server instance where
you want to create the persistence manager
and click Register.
The Information dialog box opens.
-
Click OK to close the Information dialog box.
-
Click OK to close the Select Server to Register to
dialog box.
-
To see the new Persistence Manager,
expand the application server instance
Registered Persistence Managers node.
Deleting a Persistence Manager
To delete a persistence manager from
an application server instance:
-
In the Explorer's Runtime tab,
expand the Server Registry
Installed Servers
Sun ONE Application Server 7
Administration Server
application server instance
Registered Persistence Managers node.
-
Right-click the persistence manager
and choose Delete.
-
When the application server instance is restarted,
the persistence manager is removed.
See Server Instance
for stopping and starting
the application server instance.
Legal Notices