About Question enthuware.oce-ejbd.v6.2.459 :
Posted: Sun Dec 02, 2012 3:55 am
Question should clear if we are using CMT or BMT MDB(transaction demaraction )
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.
in the above case transaction is already commited and RunTimeException takes place afterwards.
Dont you think , transaction rollback will not take place ?
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 ?