1 <?xml version="1.0"?> 2 3 <!DOCTYPE ejb-jar PUBLIC 4 '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 5 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'> 6 7 <ejb-jar> 8 <enterprise-beans> 9 <entity> 10 <ejb-name>EnglishAuction</ejb-name> 11 <local-home>interval.EnglishAuctionHome</local-home> 12 <local>interval.EnglishAuction</local> 13 <ejb-class>interval.EnglishAuctionBean</ejb-class> 14 <persistence-type>Bean</persistence-type> 15 <prim-key-class>java.lang.Integer</prim-key-class> 16 <reentrant>False</reentrant> 17 18 <ejb-local-ref> 19 <description>EJB reference used to locate an item. 20 </description> 21 <ejb-ref-name>ejb/Item</ejb-ref-name> 22 <ejb-ref-type>Entity</ejb-ref-type> 23 <local-home>interval.ItemHome</local-home> 24 <local>interval.Item</local> 25 </ejb-local-ref> 26 27 <resource-ref> 28 <description>Reference to a connection factory. 29 </description> 30 <res-ref-name>jdbc/auctionSource</res-ref-name> 31 <res-type>javax.sql.DataSource</res-type> 32 <res-auth>Container</res-auth> 33 </resource-ref> 34 </entity> 35 36 <entity> 37 <ejb-name>Bidder</ejb-name> 38 <local-home>interval.BidderHome</local-home> 39 <local>interval.Bidder</local> 40 <ejb-class>interval.BidderBean</ejb-class> 41 <persistence-type>Bean</persistence-type> 42 <prim-key-class>java.lang.Integer</prim-key-class> 43 <reentrant>False</reentrant> 44 45 <resource-ref> 46 <description>Reference to connection factory. 47 </description> 48 <res-ref-name>jdbc/auctionSource</res-ref-name> 49 <res-type>javax.sql.DataSource</res-type> 50 <res-auth>Container</res-auth> 51 </resource-ref> 52 </entity> 53 54 <entity> 55 <ejb-name>Item</ejb-name> 56 <local-home>interval.ItemHome</local-home> 57 <local>interval.Item</local> 58 <ejb-class>interval.ItemBean</ejb-class> 59 <persistence-type>Bean</persistence-type> 60 <prim-key-class>java.lang.Integer</prim-key-class> 61 <reentrant>False</reentrant> 62 63 <resource-ref> 64 <description>Reference to connection factory. 65 </description> 66 <res-ref-name>jdbc/auctionSource</res-ref-name> 67 <res-type>javax.sql.DataSource</res-type> 68 <res-auth>Container</res-auth> 69 </resource-ref> 70 </entity> 71 </enterprise-beans> 72 73 <assembly-descriptor> 74 <container-transaction> 75 <method> 76 <ejb-name>EnglishAuction</ejb-name> 77 <method-name>*</method-name> 78 </method> 79 <trans-attribute>Required</trans-attribute> 80 </container-transaction> 81 82 <container-transaction> 83 <method> 84 <ejb-name>Bidder</ejb-name> 85 <method-name>*</method-name> 86 </method> 87 <trans-attribute>Required</trans-attribute> 88 </container-transaction> 89 90 <container-transaction> 91 <method> 92 <ejb-name>Item</ejb-name> 93 <method-name>*</method-name> 94 </method> 95 <trans-attribute>Required</trans-attribute> 96 </container-transaction> 97 </assembly-descriptor> 98 99 </ejb-jar>