<?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>No Description.</description>
   <display-name>Generated by XDoclet</display-name>

   <enterprise-beans>

      <!-- Session Beans -->
      <session >
         <description><![CDATA[Session Bean Template ATTENTION: Some of the XDoclet tags are hidden from XDoclet by adding a "--" between @ and the namespace.]]></description>
         <display-name>Bug TestSession Bean</display-name>

         <ejb-name>TestSession</ejb-name>

         <home>test.interfaces.TestSessionHome</home>
         <remote>test.interfaces.TestSession</remote>
         <local-home>test.interfaces.TestSessionLocalHome</local-home>
         <local>test.interfaces.TestSessionLocal</local>
         <ejb-class>test.session.TestSessionBean</ejb-class>
         <session-type>Stateful</session-type>
         <transaction-type>Container</transaction-type>

         <ejb-ref >
            <ejb-ref-name>ejb/mytest/TestEntity</ejb-ref-name>
            <ejb-ref-type>Entity</ejb-ref-type>
            <home>test.interfaces.TestEntityHome</home>
            <remote>test.interfaces.TestEntity</remote>
            <ejb-link>TestEntity</ejb-link>
         </ejb-ref>

         <ejb-local-ref >
            <ejb-ref-name>ejb/mytest/TestEntityLocal</ejb-ref-name>
            <ejb-ref-type>Entity</ejb-ref-type>
            <local-home>test.interfaces.TestEntityLocalHome</local-home>
            <local>test.interfaces.TestEntityLocal</local>
            <ejb-link>TestEntity</ejb-link>
         </ejb-local-ref>

         <resource-ref>
            <res-ref-name>test/Mail</res-ref-name>
            <res-type>javax.mail.Session</res-type>
            <res-auth>Container</res-auth>
         </resource-ref>

      </session>

     <!--
       To add session beans that you have deployment descriptor info for, add
       a file to your merge directory called session-beans.xml that contains
       the <session></session> markup for those beans.
     -->

      <!-- Entity Beans -->
      <entity >
         <description><![CDATA[The Entity bean represents a TestEntity]]></description>
         <display-name>TestEntity working on projects to support clients</display-name>

         <ejb-name>TestEntity</ejb-name>

         <home>test.interfaces.TestEntityHome</home>
         <remote>test.interfaces.TestEntity</remote>
         <local-home>test.interfaces.TestEntityLocalHome</local-home>
         <local>test.interfaces.TestEntityLocal</local>

         <ejb-class>test.entity.TestEntityCMP</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>test.interfaces.TestEntityPK</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>TestEntity</abstract-schema-name>
         <cmp-field >
            <description><![CDATA[Retrieve the TestEntity's id.]]></description>
            <field-name>id</field-name>
         </cmp-field>
         <cmp-field >
            <description><![CDATA[Retrieve the TestEntity's FirstName.]]></description>
            <field-name>firstName</field-name>
         </cmp-field>
         <cmp-field >
            <description><![CDATA[Retrieve the TestEntity's LastName.]]></description>
            <field-name>lastName</field-name>
         </cmp-field>

         <query>
            <query-method>
               <method-name>findByName</method-name>
               <method-params>
                  <method-param>java.lang.String</method-param>
                  <method-param>java.lang.String</method-param>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(t) FROM TestEntity t WHERE t.firstName = ?1 AND t.lastName = ?2]]></ejb-ql>
         </query>
         <query>
            <query-method>
               <method-name>findAnotherByName</method-name>
               <method-params>
                  <method-param>int</method-param>
                  <method-param>java.lang.String</method-param>
                  <method-param>java.lang.String</method-param>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(t) FROM TestEntity t WHERE t.id <> ?1 AND t.firstName =?2 AND t.lastName =?3]]></ejb-ql>
         </query>

      </entity>

     <!--
       To add entity beans that you have deployment descriptor info for, add
       a file to your merge directory called entity-beans.xml that contains
       the <entity></entity> markup for those beans.
     -->

      <!-- Message Driven Beans -->
      <message-driven >
         <description><![CDATA[Message Driven Bean Template]]></description>
         <display-name>Message Driven Test Bean</display-name>

         <ejb-name>TestMessage</ejb-name>

         <ejb-class>test.message.TestMessageDrivenBean</ejb-class>

         <transaction-type>Container</transaction-type>
         <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
         <message-driven-destination>
            <destination-type>javax.jms.Queue</destination-type>
            <subscription-durability>NonDurable</subscription-durability>
         </message-driven-destination>

         <security-identity>
            <description>unauthenticated identity</description>
            <run-as>
               <role-name>guest</role-name>
               <description>unauthenticated identity</description>
            </run-as>
         </security-identity>

         <resource-ref>
            <res-ref-name>jms/ConnectionFactory</res-ref-name>
            <res-type>javax.jms.QueueConnectionFactory</res-type>
            <res-auth>Container</res-auth>
         </resource-ref>

      </message-driven>

     <!--
       To add message driven beans that you have deployment descriptor info for, add
       a file to your merge directory called message-driven-beans.xml that contains
       the <message-driven></message-driven> markup for those beans.
     -->

   </enterprise-beans>

   <!-- Relationships -->

   <!-- Assembly Descriptor -->
   <assembly-descriptor >

   <!-- finder permissions -->

   <!-- finder permissions -->

   <!-- finder permissions -->

   <!-- transactions -->
   <container-transaction >
      <method >
         <ejb-name>TestEntity</ejb-name>
         <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
   </container-transaction>

   <!-- finder transactions -->
   </assembly-descriptor>

</ejb-jar>
