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

    Duplicate key exception from database ?

    Leonid Maksimshin Newbie

      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!