<?xml version="1.0" encoding="UTF-8"?>
<!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 >

   <description>EJB for testing Hibernate EJB-interceptor</description>
   <display-name>Hibernate EJB Interception Test</display-name>

   <enterprise-beans>

      <session >
         <description><![CDATA[An ejb to test "current session" style operation.]]></description>

         <ejb-name>ProfileService</ejb-name>

         <home>org.jboss.test.hibernate.ejb.interfaces.ProfileServiceHome</home>
         <remote>org.jboss.test.hibernate.ejb.interfaces.ProfileService</remote>
         <ejb-class>org.jboss.test.hibernate.ejb.ProfileBean</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>

      </session>

      <session >
         <description><![CDATA[An ejb to test nested ejb calls withib "current session" style operation.]]></description>

         <ejb-name>AggregateProfileService</ejb-name>

         <home>org.jboss.test.hibernate.ejb.interfaces.AggregateProfileServiceHome</home>
         <remote>org.jboss.test.hibernate.ejb.interfaces.AggregateProfileService</remote>
         <ejb-class>org.jboss.test.hibernate.ejb.AggregateProfileBean</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>

      </session>

   </enterprise-beans>

   <assembly-descriptor >
      <container-transaction >
         <method >
            <ejb-name>ProfileService</ejb-name>
            <method-name>*</method-name>
         </method>
         <trans-attribute>Required</trans-attribute>
      </container-transaction>
      <container-transaction >
         <method >
            <ejb-name>AggregateProfileService</ejb-name>
            <method-name>*</method-name>
         </method>
         <trans-attribute>Required</trans-attribute>
      </container-transaction>
   </assembly-descriptor>

</ejb-jar>
