5 Replies Latest reply on Dec 31, 2002 10:41 AM by Adrian Brock

    INSERTING AN ALREADY EXISTING BEAN

    Harry Newbie

      Hi all

      I meet a problem when reinserting a data after remove it. It always produce an "INSERTING AN ALREADY EXISTING BEAN" error


      I use CMP 1.0 and Stateless session bean. First I insert a record in DB by calling a method in SB that call an EntityBean's create method. After that I remove that record by calling a SB method that call a EB's remove method. Then I want to inserting the same record (the same PK) to the database using the first task. But it always generate an error, INSERTING AN ALREADY EXISTING BEAN"
      Is there anyone that ever meet this problem and have a solution to this problem? Please help me.

      I've tried to use commit option C but the problem is still exist

      Thanks