Skip Headers

# Configuring a Descriptor With EJB Information

Previous

Next

If your project uses EJB (see "Configuring Persistence Type"), you can use descriptors to describe the characteristics of entity beans with container-managed or bean-managed persistence.

Table: Descriptor Support for EJB Information summarizes which descriptors support EJB information.

Descriptor Support for EJB Information

Descriptor | Using TopLink Workbench | Using Java
--- | --- | ---
Relational DescriptorsFoot 1 |  |
Object-Relational Descriptors |  |
EIS DescriptorsFoot 2 |  |
XML Descriptors |  |

Footnote 1 Relational class descriptors only (see "Relational Class Descriptors").

Footnote 2 EIS root descriptors only (see "EIS Root Descriptors").

When mapping enterprise beans, you create a descriptor for the bean class; you do not create a descriptor for the local interface, remote interface, home class, or primary key class.

When using TopLink Workbench, you must define the project with the correct entity bean type (such as container-managed or bean-managed persistence) and import the `ejb-jar.xml` file for the beans into the TopLink Workbench project.

For CMP projects, the `ejb-jar.xml` file defines the bean's attributes to be mapped. A descriptor for an entity bean container-managed persistence contains a CMP policy used to configure CMP-specific options.

For more information, see "Descriptors and EJB".