0 Replies Latest reply on Sep 17, 2002 1:43 PM by mchestnut

    JBoss 3.02 <cmp-field> <field-name> and jaws.xml

    mchestnut

      JBoss 3.02, EJB 1.1, I thought the <field-name> parameter in ejb-jar.xml was supposed to map to an entry in jaws.xml. If I use the database column name "tech_name" in all files, it works fine. However, if I use another name like "techName" to map the entry, the EJB fails at run time (not deploy time.) I can certainly change this, but why is this failing?

      See below for examples of working v. non-working xml.

      This *does not* work ...

      ejb-jar.xml

      <enterprise-beans>

      <ejb-name>Agent</ejb-name>
      ...
      <cmp-field>
      <field-name>techName</field-name>
      </cmp-field>
      ...

      </enterprise-beans>



      jaws.xml

      <cmp-field>
      <field-name>techName</field-name>
      <column-name>tech_name</column-name>
      </cmp-field>



      But this *does* work ...

      ejb-jar.xml

      <enterprise-beans>

      <ejb-name>Agent</ejb-name>
      ...
      <cmp-field>
      <field-name>tech_name</field-name>
      </cmp-field>
      ...

      </enterprise-beans>



      jaws.xml

      <cmp-field>
      <field-name>tech_name</field-name>
      <column-name>tech_name</column-name>
      </cmp-field>