Hi all,
A problem that has been the cause of quite a few annoying bugs in the past and is still a cause for new bugs is the problem of 'Dangling DB Transactions' (see http://sourceforge.net/apps/mediawiki/openpetraorg/index.php?title=DB_Access_Exception_Handling_Policy#The_Danger_of_.27Dangling_DB_Transactions.27).
Now that we have a policy in place to guard against that (http://sourceforge.net/apps/mediawiki/openpetraorg/index.php?title=DB_Access_Exception_Handling_Policy) I was thinking if the process of writing the necessary try/finally clauses could be made any easier and less error-prone.
I have come up with an approach that addresses that - 'Automatic DB Transaction Handling'. Please have a read of the following wiki page
https://sourceforge.net/apps/mediawiki/openpetraorg/index.php?title=Automatic_DB_Transaction_Handling#Overview
--- Use the new approach, and provide feedback!
Kind regards,
ChristianK