The Deployment Descriptor

Here is the standard eb.xml deployment descriptor:
		
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
  <description>Deployment descriptor for the eb JOnAS example</description>
  <display-name>eb example</display-name>
  <enterprise-beans>
    <entity>
      <description>Deployment descriptor for the AccountExpl bean JOnAS example</description>
      <ejb-name>AccountExpl</ejb-name>
      <home>eb.AccountHome</home>
      <remote>eb.Account</remote>
      <ejb-class>eb.AccountExplBean</ejb-class>
      <persistence-type>Bean</persistence-type>
      <prim-key-class>java.lang.Integer</prim-key-class>
      <reentrant>False</reentrant>
      <resource-ref>
        <res-ref-name>jdbc/AccountExplDs</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
      </resource-ref>
    </entity>
    <entity>
      <description>Deployment descriptor for the AccountImpl bean JOnAS example</description>
      <ejb-name>AccountImpl</ejb-name>
      <home>eb.AccountHome</home>
      <remote>eb.Account</remote>
      <ejb-class>eb.AccountImplBean</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.Integer</prim-key-class>
      <reentrant>False</reentrant>
      <cmp-version>1.x</cmp-version>
      <cmp-field>
        <field-name>accno</field-name>
      </cmp-field>
      <cmp-field>
        <field-name>customer</field-name>
      </cmp-field>
      <cmp-field>
        <field-name>balance</field-name>
      </cmp-field>
      <primkey-field>accno</primkey-field>
    </entity>
    <!-- CMP2 example in comment
    <entity>
      <description>Deployment descriptor for the AccountImpl2 bean with CMP2 JOnAS example</description>
      <ejb-name>AccountImpl2</ejb-name>
      <home>eb.AccountHome</home>
      <remote>eb.Account</remote>
      <ejb-class>eb.AccountImpl2Bean</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.Integer</prim-key-class>
      <reentrant>False</reentrant>
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>accountsample</abstract-schema-name>
      <cmp-field>
        <field-name>accno</field-name>
      </cmp-field>
      <cmp-field>
        <field-name>customer</field-name>
      </cmp-field>
      <cmp-field>
        <field-name>balance</field-name>
      </cmp-field>
      <primkey-field>accno</primkey-field>
      <query>
        <query-method>
          <method-name>findByNumber</method-name>
          <method-params>
              <method-param>int</method-param>
          </method-params>
        </query-method>
        <ejb-ql>SELECT OBJECT(o) FROM accountsample o WHERE o.accno = ?1</ejb-ql>
      </query>
      <query>
        <query-method>
          <method-name>findAllAccounts</method-name>
          <method-params/>
        </query-method>
        <ejb-ql>SELECT OBJECT(o) FROM accountsample o</ejb-ql>
      </query>
    </entity>
    -->
  </enterprise-beans>
  <assembly-descriptor>
    <container-transaction>
      <method>
        <ejb-name>AccountExpl</ejb-name>
        <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>AccountImpl</ejb-name>
        <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
    </container-transaction>
    <!-- CMP2 example in comment
    <container-transaction>
      <method>
        <ejb-name>AccountImpl2</ejb-name>
        <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
    </container-transaction>
    -->
  </assembly-descriptor>
</ejb-jar>

Here is the JOnAS specific jonas-eb.xml deployment descriptor:
<?xml version = "1.0" encoding = "ISO-8859-1"?>
<!DOCTYPE jonas-ejb-jar PUBLIC "-//ObjectWeb//DTD JOnAS 3.2//EN" "http://www.objectweb.org/jonas/dtds/jonas-ejb-jar_3_2.dtd">

<jonas-ejb-jar>

  <jonas-entity>
    <ejb-name>AccountExpl</ejb-name>
    <jndi-name>AccountExplHome</jndi-name>
    <jonas-resource>
      <res-ref-name>jdbc/AccountExplDs</res-ref-name>
      <jndi-name>jdbc_1</jndi-name>
    </jonas-resource>
	<shared>true</shared>
  </jonas-entity>

  <jonas-entity>
    <ejb-name>AccountImpl</ejb-name>
    <jndi-name>AccountImplHome</jndi-name>
	<shared>true</shared>
    <jdbc-mapping>
      <jndi-name>jdbc_1</jndi-name>
      <jdbc-table-name>accountsample_</jdbc-table-name>
      <cmp-field-jdbc-mapping>
        <field-name>accno</field-name>
        <jdbc-field-name>accno_</jdbc-field-name>
      </cmp-field-jdbc-mapping>
      <cmp-field-jdbc-mapping>
        <field-name>customer</field-name>
        <jdbc-field-name>customer_</jdbc-field-name>
      </cmp-field-jdbc-mapping>
      <cmp-field-jdbc-mapping>
        <field-name>balance</field-name>
        <jdbc-field-name>balance_</jdbc-field-name>
      </cmp-field-jdbc-mapping>
      <finder-method-jdbc-mapping>
        <jonas-method>
          <method-name>findByNumber</method-name>
        </jonas-method>
        <jdbc-where-clause>where accno_ = ?</jdbc-where-clause>
      </finder-method-jdbc-mapping>
      <finder-method-jdbc-mapping>
        <jonas-method>
          <method-name>findAllAccounts</method-name>
        </jonas-method>
        <jdbc-where-clause/>
      </finder-method-jdbc-mapping>
    </jdbc-mapping>
  </jonas-entity>

  <!-- CMP2 example in comment
  <jonas-entity>
    <ejb-name>AccountImpl2</ejb-name>
    <jndi-name>AccountImpl2Home</jndi-name>
    <jdbc-mapping>
      <jndi-name>jdbc_1</jndi-name>
    </jdbc-mapping>
  </jonas-entity>
  -->

</jonas-ejb-jar>