Create/Edit Persistence Manager

A Persistence Manager is responsible for persisting changes to Entity Beans using the Sun JavaTM System Application Server CMP (Container Managed Persistence). You must create a Persistence Manager to use the Application Server's CMP in your application.

The following table describes the fields and buttons on the screen. The left column lists the fields and buttons; the right column describes the functionality.
Field or Button
Description

JNDI Name

This is the JNDI Name used by the application server runtime to locate a particular Persistence Manager on behalf of an application. The name must the same as that defined in the entity bean's cmp-resource element of the sun specific deployment descriptor.

Description

Provide a description for the new persistence manager. The value for this field must be string.

Factory Class

The Factory Class is the classname of the Persistence Manager Factory that creates Persistence Manager instances. By default this will be set to the Java System application server's internal Persistence Manager Factory class; if you use an alternative implementation you must ensure that this class is available in the server classpath.

Connection Pool

Just like any other database access, the Persistence Manager will use connection pooling to improve performance and scalability. Choose an existing connection pool from the drop-down list. Please note that a JDBC Resource will be automatically created to allow the Persistence Manager runtime to bind to the connection pool using JNDI - the JNDI name of the JDBC Resource will be the same as the Persistence Manager JNDI Name with a prefix of PM. Deleting a Persistence Manager will also delete the associated JDBC Resource.

Persistence Manager Enabled

Mark this checkbox to enable the Persistence Manager. The persistence manager is now enabled for the connection factory specified.

OK

Saves your data and creates a new Persistence Manager.

Cancel

Cancels the new Persistence Manager.

See also

Manage Persistence Managers


Legal Notices
Copyright © 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.