defkewl:

I tried to add <resource-ref> to jboss.xml and ejb.xml but it didn't help.

But then I read it on the Net, that I should use jbosscmp-jdbc.xml instead of 
jaws.xml.

So I created one 


  | <?xml version="1.0" encoding="UTF-8"?>
  | <jbosscmp-jdbc>
  |     <defaults>
  |       <datasource>java:/testDataSource</datasource>
  |       <type-mapping>Oracle8</type-mapping>
  | 
  |             <debug>true</debug>
  |             <create-table>true</create-table>
  |             <remove-table>false</remove-table>
  |             <read-only>false</read-only>
  |             <time-out>0</time-out>
  |             <select-for-update>false</select-for-update>
  |             <pk-constraint>true</pk-constraint>
  |             <relation-mapping-style>foreign-key</relation-mapping-style>
  |             <read-ahead>
  |                     <strategy>on-load</strategy>
  |                     <page-size>500</page-size>
  |                     <eager-load-group>group name</eager-load-group>
  |             </read-ahead>
  |     </defaults>
  |     <enterprise-beans>
  |             <entity>
  |                     <ejb-name>Enterprise1BeanName</ejb-name>
  |                     <table-name>EJBTEST</table-name>
  | 
  |       <cmp-field>
  |         <field-name>id</field-name>
  |         <column-name>ID</column-name>
  |       </cmp-field>
  |       <cmp-field>
  |         <field-name>payload</field-name>
  |         <column-name>PAYLOAD</column-name>
  |       </cmp-field>
  | 
  |             </entity>
  |     </enterprise-beans>
  | </jbosscmp-jdbc>
  | 

and then the CMP worked.

Peter

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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to