Here is the ejb-jar.xml file

<?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 >

   <![CDATA[No Description.]]>
   <display-name>Generated by XDoclet</display-name>

   <enterprise-beans>

      <!-- Session Beans -->
      
         <![CDATA[EJB that computes Fibonacci Suite]]>
         <display-name>Fibo EJB</display-name>

         <ejb-name>Fibo</ejb-name>

         wonomi.identityManagement.interfaces.FiboHome
         wonomi.identityManagement.interfaces.Fibo
         <ejb-class>wonomi.identityManagement.ejb.FiboBean</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>

      

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

      <!-- Entity Beans -->
      
         <![CDATA[]]>

         <ejb-name>UserProfile</ejb-name>

         
<local-home>wonomi.identityManagement.interfaces.UserProfileLocalHome</local-home>
         wonomi.identityManagement.interfaces.UserProfileLocal

         <ejb-class>wonomi.identityManagement.ejb.UserProfileBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         true
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>UserProfile</abstract-schema-name>
         <cmp-field >
            <![CDATA[]]>
            <field-name>id</field-name>
         </cmp-field>
         <cmp-field >
            <![CDATA[]]>
            <field-name>userName</field-name>
         </cmp-field>
         <cmp-field >
            <![CDATA[]]>
            <field-name>password</field-name>
         </cmp-field>
          <primkey-field>id</primkey-field>

         
            <query-method>
               <method-name>findAll</method-name>
               <method-params>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[select object(o) from UserProfile o]]></ejb-ql>
         
         
            <query-method>
               <method-name>findByID</method-name>
               <method-params>
                  <method-param>java.lang.Integer</method-param>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[select object(o) from UserProfile o where o.id = 
(?1)]]></ejb-ql>
         
         
            <query-method>
               <method-name>findByUserName</method-name>
               <method-params>
                  <method-param>java.lang.String</method-param>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[select object(o) from UserProfile o where 
o.userName = (?1)]]></ejb-ql>
         
         
            <query-method>
               <method-name>findAll</method-name>
               <method-params>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[select object(o) from UserProfile o]]></ejb-ql>
         
          <!-- Write a file named ejb-finders-UserProfileBean.xml if you want 
to define extra finders. -->
      

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

      <!-- Message Driven Beans -->
     <!--
       To add message driven beans that you have deployment descriptor info 
for, add
       a file to your XDoclet 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 >
     <!--
       To add additional assembly descriptor info here, add a file to your
       XDoclet merge directory called assembly-descriptor.xml that contains
       the <assembly-descriptor></assembly-descriptor> markup.
     -->

   <!-- finder permissions -->

   <!-- finder permissions -->

   <!-- transactions -->

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

</ejb-jar>


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983351#3983351

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983351
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to