Este es el ejb-jar.xml, lo divido en dos partes.-
Código:
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" version="2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
<display-name>DukesBankEJBJAR</display-name>
<enterprise-beans>
<entity>
<ejb-name>AccountEJB</ejb-name>
<local-home>com.sun.ebank.ejb.account.AccountHome</local-home>
<local>com.sun.ebank.ejb.account.Account</local>
<ejb-class>com.sun.ebank.ejb.account.AccountBean</ejb-class>
<abstract-schema-name>AccountEJB</abstract-schema-name>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>false</reentrant>
<resource-ref>
<res-ref-name>jdbc/DefaultDS</res-ref-name>
<res-type>javax.sql.Datasource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
<entity>
<ejb-name>CustomerEJB</ejb-name>
<local-home>com.sun.ebank.ejb.customer.CustomerHome</local-home>
<local>com.sun.ebank.ejb.customer.Customer</local>
<ejb-class>com.sun.ebank.ejb.customer.CustomerBean</ejb-class>
<abstract-schema-name>CustomerEJB</abstract-schema-name>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>false</reentrant>
<resource-ref>
<res-ref-name>jdbc/DefaultDS</res-ref-name>
<res-type>javax.sql.Datasource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
<entity>
<ejb-name>TxEJB</ejb-name>
<local-home>com.sun.ebank.ejb.tx.TxHome</local-home>
<local>com.sun.ebank.ejb.tx.Tx</local>
<ejb-class>com.sun.ebank.ejb.tx.TxBean</ejb-class>
<abstract-schema-name>TxEJB</abstract-schema-name>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>false</reentrant>
<resource-ref>
<res-ref-name>jdbc/DefaultDS</res-ref-name>
<res-type>javax.sql.Datasource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
<session>
<ejb-name>AccountControllerEJB</ejb-name>
<home>com.sun.ebank.ejb.account.AccountControllerHome</home>
<remote>com.sun.ebank.ejb.account.AccountController</remote>
<ejb-class>com.sun.ebank.ejb.account.AccountControllerBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Bean</transaction-type>
<ejb-local-ref>
<ejb-ref-name>AccountEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sun.ebank.ejb.account.AccountHome</local-home>
<local>com.sun.ebank.ejb.account.Account</local>
<ejb-link>AccountEJB</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>CustomerEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sun.ebank.ejb.customer.CustomerHome</local-home>
<local>com.sun.ebank.ejb.customer.Customer</local>
<ejb-link>CustomerEJB</ejb-link>
</ejb-local-ref>
</session>
<session>
<ejb-name>CustomerControllerEJB</ejb-name>
<home>com.sun.ebank.ejb.customer.CustomerControllerHome</home>
<remote>com.sun.ebank.ejb.customer.CustomerController</remote>
<ejb-class>com.sun.ebank.ejb.customer.CustomerControllerBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Bean</transaction-type>
<ejb-local-ref>
<ejb-ref-name>CustomerEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sun.ebank.ejb.customer.CustomerHome</local-home>
<local>com.sun.ebank.ejb.customer.Customer</local>
<ejb-link>CustomerEJB</ejb-link>
</ejb-local-ref>
</session>
<session>
<ejb-name>TxControllerEJB</ejb-name>
<home>com.sun.ebank.ejb.tx.TxControllerHome</home>
<remote>com.sun.ebank.ejb.tx.TxController</remote>
<ejb-class>com.sun.ebank.ejb.tx.TxControllerBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Bean</transaction-type>
<ejb-local-ref>
<ejb-ref-name>TxEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sun.ebank.ejb.tx.TxHome</local-home>
<local>com.sun.ebank.ejb.tx.Tx</local>
<ejb-link>TxEJB</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>AccountEJB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.sun.ebank.ejb.account.AccountHome</local-home>
<local>com.sun.ebank.ejb.account.Account</local>
<ejb-link>AccountEJB</ejb-link>
</ejb-local-ref>
</session>