posted 14 years ago
Hi,
I have a message driven bean whose onJob method is annotated as requires new transaction.The code looks something like below
@new transaction
onJob(){
method1();
method2();
}
@new tarnsaction
method1(){
MDBContext.setRollbackOnly();
}
@new transaction
method2(){
}
now here eventhough i call rollback for transaction of method1
even data in method2 gets rolled back ?
is it the if we call MDBContext.setRollBackOnly all the transaction for that MDBContext get rolled back?