Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Developer's Guide

- Previous: ejb
- Next: ejb-ref

## ejb-name

In the `sun-ejb-jar.xml` file, matches the `ejb-name` in the corresponding `ejb-jar.xml` file. The name must be unique among the names of the enterprise beans in the same EJB JAR file.

There is no architected relationship between the `ejb-name` in the deployment descriptor and the JNDI name that the deployer assigns to the EJB component’s home.

In the `sun-cmp-mappings.xml` file, specifies the `ejb-name` of the entity bean in the `ejb-jar.xml` file to which the container-managed persistence (CMP) bean corresponds.

### Superelements

ejb, method (`sun-ejb-jar.xml`); entity-mapping (`sun-cmp-mappings.xml`)

### Subelements

none - contains data

- Previous: ejb
- Next: ejb-ref

- © 2010, Oracle Corporation and/or its affiliates