1:<?xml version="1.0" encoding="UTF-8"?>
   2:<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
   3:<ejb-jar>
   4:  <display-name>EJBModule_Ejemplo</display-name>
   5:  <enterprise-beans>
   6:    <entity>
   7:      <ejb-name>Track</ejb-name>
   8:      <local-home>is346.TrackHome</local-home>
   9:      <local>is346.Track</local>
  10:      <ejb-class>is346.TrackBean</ejb-class>
  11:      <persistence-type>Container</persistence-type>
  12:      <prim-key-class>java.lang.Integer</prim-key-class>
  13:      <reentrant>False</reentrant>
  14:      <cmp-version>2.x</cmp-version>
  15:      <abstract-schema-name>Track</abstract-schema-name>
  16:      <cmp-field>
  17:        <field-name>id</field-name>
  18:      </cmp-field>
  19:      <cmp-field>
  20:        <field-name>title</field-name>
  21:      </cmp-field>
  22:      <cmp-field>
  23:        <field-name>duration</field-name>
  24:      </cmp-field>
  25:      <primkey-field>id</primkey-field>
  26:    </entity>
  27:    <entity>
  28:      <ejb-name>Artist</ejb-name>
  29:      <local-home>is346.ArtistHome</local-home>
  30:      <local>is346.Artist</local>
  31:      <ejb-class>is346.ArtistBean</ejb-class>
  32:      <persistence-type>Container</persistence-type>
  33:      <prim-key-class>java.lang.Integer</prim-key-class>
  34:      <reentrant>False</reentrant>
  35:      <cmp-version>2.x</cmp-version>
  36:      <abstract-schema-name>Artist</abstract-schema-name>
  37:      <cmp-field>
  38:        <field-name>id</field-name>
  39:      </cmp-field>
  40:      <cmp-field>
  41:        <field-name>name</field-name>
  42:      </cmp-field>
  43:      <primkey-field>id</primkey-field>
  44:    </entity>
  45:    <session>
  46:      <ejb-name>TrackSessionFacade</ejb-name>
  47:      <home>is346.TrackSessionFacadeHome</home>
  48:      <remote>is346.TrackSessionFacade</remote>
  49:      <ejb-class>is346.TrackSessionFacadeBean</ejb-class>
  50:      <session-type>Stateless</session-type>
  51:      <transaction-type>Container</transaction-type>
  52:      <ejb-local-ref>
  53:        <ejb-ref-name>ejb/track</ejb-ref-name>
  54:        <ejb-ref-type>Entity</ejb-ref-type>
  55:        <local-home>is346.TrackHome</local-home>
  56:        <local>is346.Track</local>
  57:        <ejb-link>Track</ejb-link>
  58:      </ejb-local-ref>
  59:    </session>
  60:    <session>
  61:      <ejb-name>ArtistSessionFacade</ejb-name>
  62:      <home>is346.ArtistSessionFacadeHome</home>
  63:      <remote>is346.ArtistSessionFacade</remote>
  64:      <ejb-class>is346.ArtistSessionFacadeBean</ejb-class>
  65:      <session-type>Stateless</session-type>
  66:      <transaction-type>Container</transaction-type>
  67:      <ejb-local-ref>
  68:        <ejb-ref-name>ejb/artist</ejb-ref-name>
  69:        <ejb-ref-type>Entity</ejb-ref-type>
  70:        <local-home>is346.ArtistHome</local-home>
  71:        <local>is346.Artist</local>
  72:        <ejb-link>Artist</ejb-link>
  73:      </ejb-local-ref>
  74:    </session>
  75:  </enterprise-beans>
  76:  <relationships>
  77:    <ejb-relation>
  78:      <ejb-relation-name>track-artist</ejb-relation-name>
  79:      <ejb-relationship-role>
  80:        <description>track</description>
  81:        <ejb-relationship-role-name>TrackRelationshipRole</ejb-relationship-role-name>
  82:        <multiplicity>Many</multiplicity>
  83:        <relationship-role-source>
  84:          <description>track</description>
  85:          <ejb-name>Track</ejb-name>
  86:        </relationship-role-source>
  87:        <cmr-field>
  88:          <description>artist</description>
  89:          <cmr-field-name>artist</cmr-field-name>
  90:          <cmr-field-type>java.util.Collection</cmr-field-type>
  91:        </cmr-field>
  92:      </ejb-relationship-role>
  93:      <ejb-relationship-role>
  94:        <description>artist</description>
  95:        <ejb-relationship-role-name>ArtistRelationshipRole</ejb-relationship-role-name>
  96:        <multiplicity>Many</multiplicity>
  97:        <relationship-role-source>
  98:          <description>artist</description>
  99:          <ejb-name>Artist</ejb-name>
 100:        </relationship-role-source>
 101:      </ejb-relationship-role>
 102:    </ejb-relation>
 103:  </relationships>
 104:  <assembly-descriptor>
 105:    <container-transaction>
 106:      <method>
 107:        <ejb-name>Track</ejb-name>
 108:        <method-name>*</method-name>
 109:      </method>
 110:      <trans-attribute>Required</trans-attribute>
 111:    </container-transaction>
 112:    <container-transaction>
 113:      <method>
 114:        <ejb-name>Artist</ejb-name>
 115:        <method-name>*</method-name>
 116:      </method>
 117:      <trans-attribute>Required</trans-attribute>
 118:    </container-transaction>
 119:    <container-transaction>
 120:      <method>
 121:        <ejb-name>TrackSessionFacade</ejb-name>
 122:        <method-name>*</method-name>
 123:      </method>
 124:      <trans-attribute>Required</trans-attribute>
 125:    </container-transaction>
 126:    <container-transaction>
 127:      <method>
 128:        <ejb-name>ArtistSessionFacade</ejb-name>
 129:        <method-name>*</method-name>
 130:      </method>
 131:      <trans-attribute>Required</trans-attribute>
 132:    </container-transaction>
 133:  </assembly-descriptor>
 134:</ejb-jar>