0 Replies Latest reply on Feb 18, 2012 12:17 AM by sabbirali kadiwala

    Deadlock in CMP transaction in EJB3

    sabbirali kadiwala Newbie

      I have one action it will generate three thread and each thread call same ejb service with different input paramerer.


      here all thread started same time


      when container try to commit then i got dead lock :ORA-00060: deadlock detected while waiting for resource exception


      so any body get this type of exception Please suggest where i m wronge ?


      My EJB Service operation like below


      In Transaction operation are


      void method(){

      insert entity in MstSchedule will generate  id : 100

      other processing on based on other 100 on other table

      if data not found then delete same entity where id id : 100 ( previous inserted entity)


      commit by container


      Please reply appreciate your answer.