Hi!
I mapped my bean with the table in the database in the jaws.xml as following:
jdbc/SalesDB
<datasource-mapping>DB2</datasource-mapping>
<enterprise-beans>
<ejb-name>ProductBean</ejb-name>
<table-name>Product</table-name>
<create-table>false</create-table>
<cmp-field>
<field-name>name</field-name>
<column-name>name</column-name>
</cmp-field>
<cmp-field>
<field-name>description</field-name>
<column-name>description</column-name>
</cmp-field>
</enterprise-beans>
After deploying I saw in the file log file of JBoss "server.log" that JBoss mapped my bean with the table name ProductBean, not with the name which I gave in the file jaws.xml.
Why? Please help me!
Regards
Are you using CMP 2.0? CMP 2.0 does not use the jaws.xml file; instead it uses the jbosscmp-jdbc.xml file.