ivanlc: Thanks for the suggestion regarding removal of AS. Unfortunately it didn't 
make a difference.

Raist_Majere: Here is my deployment descriptor. Many thanks for
your interest.

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

      <!-- Entity Beans -->
      
         <![CDATA[The EJB representing the Rockwell ControlLogix 5550 PLC.]]>

         <ejb-name>ControlLogix</ejb-name>

         com.generic.ControlLogixHome
         com.generic.ControlLogix
         <local-home>com.generic.ControlLogixLocalHome</local-home>
         com.generic.ControlLogixLocal

         <ejb-class>com.generic.ControlLogixCMP</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.String</prim-key-class>
         False
         <cmp-version>2.x</cmp-version>
         <abstract-schema-name>ControlLogix</abstract-schema-name>
         <cmp-field >
            <![CDATA[Gets the location of the PLC.]]>
            <field-name>location</field-name>
         </cmp-field>
         <cmp-field >
            <![CDATA[Gets the name of the plc.]]>
            <field-name>name</field-name>
         </cmp-field>
          <primkey-field>name</primkey-field>

         <resource-ref >
            <res-ref-name>datadource</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
         </resource-ref>

         
            <query-method>
               <method-name>findByName</method-name>
               <method-params>
                  <method-param>java.lang.String</method-param>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(c) FROM ControlLogix c WHERE c.name = 
?1]]></ejb-ql>
         
         
            <query-method>
               <method-name>findByLocation</method-name>
               <method-params>
                  <method-param>com.generic.MyPath</method-param>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(c) FROM ControlLogix c WHERE c.location = 
?1]]></ejb-ql>
         
         
            <query-method>
               <method-name>findAll</method-name>
               <method-params>
               </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(c) FROM ControlLogix AS c]]></ejb-ql>
         
          <!-- Write a file named ejb-finders-ControlLogixBean.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 -->
     <!--
       To specify your own assembly descriptor info here, add a file to your
       XDoclet merge directory called assembly-descriptor.xml that contains
       the <assembly-descriptor></assembly-descriptor> markup.
     -->

   <assembly-descriptor >
     <!--
       To specify additional security-role elements, add a file in the merge
       directory called ejb-security-roles.xml that contains them.
     -->

   <!-- method permissions -->
     <!--
       To specify additional method-permission elements, add a file in the merge
       directory called ejb-method-permissions.ent that contains them.
     -->

   <!-- finder permissions -->

   <method-permission >
      <![CDATA[Permission for findByPK method]]>
      
      
         <ejb-name>ControlLogix</ejb-name>
         <method-name>findByPrimaryKey</method-name>
      
   </method-permission>

   <!-- transactions -->
     <!--
       To specify additional container-transaction elements, add a file in the merge
       directory called ejb-container-transaction.ent that contains them.
     -->
   <container-transaction >
      
         <ejb-name>ControlLogix</ejb-name>
         <method-intf>Local</method-intf>
         <method-name>process</method-name>
         <method-params>
         </method-params>
      
      <trans-attribute>Required</trans-attribute>
   </container-transaction>
   <container-transaction >
      
         <ejb-name>ControlLogix</ejb-name>
         <method-intf>Remote</method-intf>
         <method-name>process</method-name>
         <method-params>
         </method-params>
      
      <trans-attribute>Required</trans-attribute>
   </container-transaction>

   <!-- finder transactions -->

     <!--
       To specify an exclude-list element, add a file in the merge directory
       called ejb-exclude-list.xml that contains it.
     -->
   </assembly-descriptor>

</ejb-jar>


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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853095


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to