This content has been marked as final.
Show 1 reply
-
1. Re: Local SSL process [method - CMT used] atomic operations
sankul123 May 21, 2008 3:59 PM (in response to sankul123)This is how I have implemented ,
Used SSB with BMT-
Code:void myAtomicProcess(String a, String b)throws MyException{ try{ userTx.begin() //2. update file ... fileOperFlag = true //1. update db... userTx.commit() DBoperFlag = true }catch(){} finally{ if(fileOperFlag && !DBoperFlag){ //Restore the file to its original state } } }
Please let me know if you see any flaw in this.
Regards,
Sandeep Kulkarni