Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<enterprise-beans>

The <enterprise-beans> element used to specify references by <entity> EJB's. For example, a EJB Entity Bean would be specified as below in an openejb-jar.xml file:

Code Block
xml
xml
borderStylesolid
title<enterprise-beans> Example

    <enterprise-beans>
     <entity>
            <ejb-name>ExchangeRate</ejb-name>
            <local-jndi-name>ExchangeRate</local-jndi-name>
            <resource-ref>
                <ref-name>jdbc/BankDataSource</ref-name>
                <resource-link>BankPool</resource-link>
            </resource-ref>
        </entity>
    </enterprise-beans>

<ejb-name>

The <ejb-name> element identifies the EJB that these settings apply to and must match the <ejb-name> for the EJB in ejb-jar.xml file.

...