JBoss Community

Deadlock in CMP transaction in EJB3

created by sabbirali kadiwala in EJB3 - View the full discussion

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.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community