Specifies the database to be used for storing CMP beans. For more information about this element, see Configuring the CMP Resource in Sun GlassFish Enterprise Server v3 Application Development Guide.
enterprise-beans (sun-ejb-jar.xml)
The following table describes subelements for the cmp-resource element.
Table C–32 cmp-resource Subelements
Element |
Required |
Description |
---|---|---|
only one |
Specifies the absolute jndi-name of a JDBC resource. |
|
zero or one |
Specifies the default runtime bindings of a resource reference. |
|
zero or more |
Specifies a property name and value. Used to configure PersistenceManagerFactory properties. |
|
zero or one |
If true, specifies that database tables are created for beans that are automatically mapped by the EJB container. |
|
zero or one |
If true, specifies that database tables that were automatically created when the bean(s) were last deployed are dropped when the bean(s) are undeployed. |
|
zero or one |
Specifies the name of the database vendor for which tables can be created. |
|
zero or one |
Specifies field-specific type mappings and allows you to set the use-unique-table-names property. |