0 Replies Latest reply on Oct 15, 2003 7:22 AM by le_ma_

    Duplicate key exception from database ?

    le_ma_

      Hello!

      I'm creating CMP bean with equals composite primary keys from different parallel threads. JBOSS, if I understand well, must prevent this situation by sending DuplicateKeyException, because it's creating the same object. But I've got exception not from JBOSS, but from database 'Duplicate key'.

      I read from this forum that before inserting CMP creation process have to select from database possibly existed records by primary key fields and throwing DuplicateKeyException.

      What's wrong with me? Please HELP!