2 Replies Latest reply on Feb 22, 2004 9:03 PM by aloubyansky

    Jboss does not accept <table-name>.. why?

    mandarjboss

      I am using JBoss for an enterprise application development.I am accesing the EJB called "QuestionBean" from a Servlet.
      I have mapped QuestionBean to PostgreSQL.My application gets deployed Successfuly.But when i execute the application it searches for a table called "questionbean" in Postgre database.
      As I have turned off the creation of the table by JBoss it gives me an exception.
      My jbosscmp-jdbc.xml contains following:

      <jbosscmp-jdbc>


      <enterprise-beans>

      <ejb-name>QuestionBean</ejb-name>
      java:/PostgresDS
      <datasource-mapping>PostgreSQL</datasource-mapping>
      <create-table>false</create-table>
      <table-name>newquestion</table-name>
      <cmp-field>
      <field-name>questionid</field-name>
      <column-name>question_id</column-name>
      ......... so on..

      I don't want jboss to create a table when i execute the application but rather whatever data i enter through EJb should go into a table "newquestion" which is already present in the database.
      Do i need to make any changes in this file or in any other file?
      Do i need to make any config settings in web.xml or jboss-web.xml for datasource?