0 Replies Latest reply on Jun 15, 2004 7:26 AM by madadi

    one servlet for 2 Ejb(CMP)

    madadi

      hai ..

      i created a registrationform(which contains personal and specific data) where user can enter data and that data should store in mysql database which contains 2 tables.

      one table contains personal_data other is specific_data. i have tried with one table and one CMP it works .but with 2 tables it does't.

      personal_data table have PRI Key (userid) and specific_data table have Foreign Key (userid).

      Can i write a servlet for 2 CMP beans.if so what abt PRI Key and Foreign Key ..both are same (userid) ????? guide me ...


      regards
      madadi