I merged jaws.xml and jboss.xml to jbosscmp-jdbc.xml and leave the ejb-jar.xml 

jbosscmp-jdbc.xml
<!DOCTYPE jbosscmp-jdbc PUBLIC    
  |           "-//JBoss//DTD JBOSSCMP-JDBC 3.2//EN"
  |           "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd";>
  | 
  | <jbosscmp-jdbc>
  |   <defaults>
  |     <datasource>java:/mySQL-bean-DS</datasource>
  |     <datasource-mapping>mySQL</datasource-mapping>
  |   </defaults>
  | 
  |   <enterprise-beans>
  |     <entity>
  |       <ejb-name>BeanName</ejb-name>
  | 
  |       <table-name>bean</table-name>
  | 
  |       <cmp-field>
  |         <field-name> beanID </field-name>
  |     <column-name>bean_id</column-name>
  |       </cmp-field>
  |       <cmp-field>
  |         <field-name>someField</field-name>
  |         <column-name>some_field</column-name>
  |       </cmp-field>
  | 
  |       <query>
  |         <query-method>
  |           <method-name>findBySomeFiled</method-name>
  |           <method-params>
  |             <method-param>int</method-param>
  |           </method-params>
  |         </query-method>
  |         <declared-sql>
  |           <where>[CDATA[ some_field = {0} ]]</where>
  |         </declared-sql>
  |       </query>
  | 
  |     </entity>
  |   </enterprise-beans>
  | 
  | </jbosscmp-jdbc>

Works fine on testing, only a WARNING on deploy, that the query-Funktions not 
in ejb-jar.xml.

Are there any known Proplems with that kind of deploy?


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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to