Tuesday, October 20, 2009

How to check and throw exception after all data are posted

Thanks to Oracle Suport and Didier Laurent a workaround is found to problem:

http://adfbugs.blogspot.com/2009/10/open-locks-in-optimistic-locking-bug.html

By Design optimistick locking locks before doCommit.

In order to remove locks and not loose entities data and to restore entity states, set the configuration parameter jbo.txn.handleafterpostexc to true.



Thanks Didier and Oracle Suport.

Test case:
http://adfbugs.googlecode.com/files/TestLockWorkaroundNew.zip

2 comments: