0 Replies Latest reply on Jan 3, 2006 7:19 AM by Prashant Tiwari

    Help me regarding cmpjdbc.xml file....

    Prashant Tiwari Newbie

      I am developing a web application using JBOSS 4 . Previously it was in JONAS 4. Now i want it 2 run on JBOSS server. The Application has 2 parts
      EJB & Web(jsp) part. Web part is running fine. Now i want to deploy the EJB into JBOss server. But problem is that my jonas-ejb.jar file is as follows:--
      ======
      <!DOCTYPE jonas-ejb-jar PUBLIC "-//ObjectWeb//DTD JOnAS 2.4//EN" "http://www.objectweb.org/jonas/dtds/jonas-ejb-jar_2_4.dtd">
      <jonas-ejb-jar>

      <jonas-entity>
      <ejb-name>econifyCartDetail</ejb-name>
      <jndi-name>econifyCartDetailHome</jndi-name>
      <jdbc-mapping>
      <jndi-name>jdbc_econify</jndi-name>
      <jdbc-table-name>cartdetail</jdbc-table-name>
      <cmp-field-jdbc-mapping>
      <field-name>cartdetailid</field-name>
      <jdbc-field-name>cartdetailid</jdbc-field-name>
      </cmp-field-jdbc-mapping>
      <cmp-field-jdbc-mapping>
      <field-name>cartid</field-name>
      <jdbc-field-name>cartid</jdbc-field-name>
      </cmp-field-jdbc-mapping>
      <cmp-field-jdbc-mapping>
      <field-name>partid</field-name>
      <jdbc-field-name>partid</jdbc-field-name>
      </cmp-field-jdbc-mapping>
      <cmp-field-jdbc-mapping>
      <field-name>quantity</field-name>
      <jdbc-field-name>quantity</jdbc-field-name>
      </cmp-field-jdbc-mapping>
      <cmp-field-jdbc-mapping>
      <field-name>unitprice</field-name>
      <jdbc-field-name>unitprice</jdbc-field-name>
      </cmp-field-jdbc-mapping>
      <finder-method-jdbc-mapping>
      <jonas-method>
      <method-name>findCartDetailPK</method-name>
      </jonas-method>
      <jdbc-where-clause>where cartdetailid = ?</jdbc-where-clause>
      </finder-method-jdbc-mapping>
      </jdbc-mapping>
      </jonas-entity>
      </jonas-ejb-jar>
      =================

      Now i want to write 2 files for JBOSS specific to EJB.
      How to write the JBOSS specific descriptor files equivalent to above ejb descriptor file in JONAS.

      Please help me.
      Thanx in advance

      Prash