2 Replies Latest reply on Aug 4, 2004 5:38 AM by antalf

    Rollback not removing row in DB

    antalf Newbie


      I'm having trouble when trying to rollback a transaction when a new entity bean is created. The problem is that if a rollback occurs (calling the setRollbackOnly()) all the changes are rolled back but the row is not deleted, even though the create() call on the entity bean is beeing made in the same transaction (eg. in a session bean method first I create the entity bean then I modify its fields and do a rollback: only the modifications are rolled back - the row is created in the db).

      I'm using CMP and CMT, and the methods of the entity and session bean I use have the trasaction attribute set to Required.

      Anyone has any Idea of what this might be??
      Thanks in advance.