<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<!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>
    
    <enterprise-beans>
       <session>
            <description>SessionBean that creates, drops, looks up tables </description>
            <ejb-name>bmp.BMPHelperSession</ejb-name>
            <home>org.jboss.test.bmp.interfaces.BMPHelperSessionHome</home>
            <remote>org.jboss.test.bmp.interfaces.BMPHelperSession</remote>
            <ejb-class>org.jboss.test.bmp.beans.BMPHelperSessionBean</ejb-class>
            <session-type>Stateless</session-type>
            <transaction-type>Container</transaction-type>

            <resource-ref>
               <res-ref-name>datasource</res-ref-name>
               <res-type>javax.sql.DataSource</res-type>
               <res-auth>Container</res-auth>
            </resource-ref>
            <ejb-ref>
               <ejb-ref-name>bean</ejb-ref-name>
               <ejb-ref-type>Entity</ejb-ref-type>
               <home>org.jboss.test.bmp.interfaces.SimpleBMPHome</home>
               <remote>org.jboss.test.bmp.interfaces.SimpleBMP</remote>
               <ejb-link>bmp.SimpleBMP</ejb-link>
            </ejb-ref>
            
       </session>

       <entity>
            <description>a simple bean managed entity bean</description>
            <ejb-name>bmp.SimpleBMP</ejb-name>
            <home>org.jboss.test.bmp.interfaces.SimpleBMPHome</home>
            <remote>org.jboss.test.bmp.interfaces.SimpleBMP</remote>
            <ejb-class>org.jboss.test.bmp.beans.SimpleBMPBean</ejb-class>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <persistence-type>Bean</persistence-type>
            <transaction-type>Container</transaction-type>
            <reentrant>false</reentrant>

            <resource-ref>
               <res-ref-name>datasource</res-ref-name>
               <res-type>javax.sql.DataSource</res-type>
               <res-auth>Container</res-auth>
            </resource-ref>
            
       </entity>
    
    
    
    </enterprise-beans>  
    <assembly-descriptor>
       <container-transaction>
          <method>
             <ejb-name>bmp.SimpleBMP</ejb-name>
             <method-name>*</method-name>
          </method>
          <method>
             <ejb-name>bmp.BMPHelperSession</ejb-name>
             <method-name>*</method-name>
          </method>
          <trans-attribute>Required</trans-attribute>
       </container-transaction>
    </assembly-descriptor>

</ejb-jar>
