The deployment descriptor

Here is the generic ejb-jar.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/j2ee/dtds/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-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>
  </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>
  </assembly-descriptor>
</ejb-jar>

Here is the JOnAS specific jonas-ejb-jar.xml deployment descriptor:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE jonas-ejb-jar PUBLIC "-//ObjectWeb//DTD JOnAS//EN" "http://www.objectweb.org/jonas/dtds/jonas-ejb-jar_2_4.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>
  </jonas-entity>
  <jonas-entity>
    <ejb-name>AccountImpl</ejb-name>
    <jndi-name>AccountImplHome</jndi-name>
    <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></jdbc-where-clause>
      </finder-method-jdbc-mapping>
    </jdbc-mapping>
  </jonas-entity>
</jonas-ejb-jar>