2 Replies Latest reply on Jan 30, 2002 4:30 AM by OzB

    CMP2.0: JBoss 3a always creates table

    OzB Newbie

      Hi,

      I'm new in the jboss community and I've got a problem with JBoss3a and the default Hypersonic DB.

      I've created a table manually and I would like my simple CMP bean to use it instead of creating a new one.
      So, I have put in my jaws.xml the following lines :

      ----------------jaws.xml-----------------------

      <default-entity>
      <create-table>false</create-table>
      <remove-table>false</remove-table>
      <tuned-updates>true</tuned-updates>
      <read-only>false</read-only>
      <time-out>300</time-out>
      <select-for-update>false</select-for-update>
      </default-entity>
      <enterprise-beans>

      <ejb-name>Product</ejb-name>
      <table-name>PRODUCTS</table-name>

      </enterprise-beans>

      -------------end of jaws.xml-------------------

      But when I deploy my bean, he still create the 'Product' table instead of using the existing 'PRODUCTS' table as specified in the jaws.xml file.

      Any help would be appreciated :)
      thanks in advance and have a good day

      ozb