Because if we are using CMT MDB with Transaction attribute NOT_SUPPORTED , then roll back scenario goes out of picture.
Similary if we are using BMT MDB, then we might have a scenario in which RunTimeException takes place after ut.commit code is executed.
Code: Select all
method()
{
....
ut.start() //ut is UserTransaction instance
//Some lines of code
ut.commit()
//some lines of code
//run time exception takes place here
}
Dont you think , transaction rollback will not take place ?