I've just commited some what of a high risk change.
We were experiencing connection leaks from code that didn't close hibernate sessions.
I've wrapped the entire incoming http request in a transaction so I can forcefully release it upon completion of the request.
The risk is... it means all database work done for a http request is within 1 transaction unless you explicitly said REQUIRES_NEW.
As far as I'm aware, oscar never used transactions anyways, i.e. MyISAM tables, so I'm hoping this change doesn't break anything.
If anyone sees any problems though let me know and I'll either fix or revert it.
--
Ted Leung
tedleung@...---
This e-mail is intended only for the named recipient(s) and may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. No waiver of privilege, confidence or otherwise is intended by virtue of communication via the internet. Any unauthorized use, dissemination or copying is strictly prohibited. If you have received this e-mail in error, or are not named as a recipient, please immediately notify the sender and destroy all copies of this e-mail. Please be aware that internet communications are subject to the risk of data corruption, transmission errors, and privacy breaches.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Oscarmcmaster-devel mailing list
Oscarmcmaster-devel@...
https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-devel