0 Replies Latest reply on Nov 20, 2003 2:48 PM by S(Samuel) Pattabiraman

    CMP- EJB Name different from Table Name- Oracle8i Database

    S(Samuel) Pattabiraman Newbie

      Hi,

      I create the Entity Bean with CMP and CMR, use the Oracle 8 Database for storage. The container automatically creates the Table(s) with the EntityBean Name.

      I tried placing the following in jaws.xml


      <ejb-name>MyBusinessBean</ejb-name>
      <table-name>TBL_BUSINESS</table-name>


      ejb-jar.xml has the entry


      <ejb-name>MyBusiness</ejb-name>
      ...
      <abstract-schema-name>TBL_BUSINESS</abstract-schema-name>



      The bean after deployment still creates the tables, tests with the default EBean Name in the oracle Database. If I disable the Create. It says Table does not exist.

      It is not using the jaws.xml at all. The clue is it tries to load standardjbosscmp-jdbc.xml before it creates the Database tables and run tests for finder methods.