0 Replies Latest reply on Apr 23, 2003 8:19 AM by Valery Silaev

    ejbCreate, ejbFind & Tx

    Valery Silaev Newbie


      Af far as I understand, the CMP Bean instance is not associated with transaction until any business method is called (i.e. all except ones in EntityBean interface like getPrimaryKey).

      The ejbCreate/ejbFind do not assotiate entity found with tx context.

      Why? As I found from my expirience it is a source of many dead-lock scenarious in case when DB exclusively locks table with INSERT statement corresponding to ejbCreate (and holds it till the end of tx). I can follow with examples, if required.

      Does it mandated by spec? Or has it some explanation?

      Sorry, if this message tend to be an offtopic.