Proposal: Automatic Resource Management

Mark Mahieu markmahieu at googlemail.com
Fri Mar 6 16:26:54 PST 2009


On 7 Mar 2009, at 00:13, Bob Lee wrote:
>
> I should further point out that this language feature does not  
> create the
> need for a wrapper. You should have the wrapper already, unless of  
> course
> you enjoy writing the same rollback/close logic over and over.  
> Connection
> wrappers are also already necessary for other reasons:
> http://weblogs.java.net/blog/crazybob/archive/2004/03/ 
> patch_leaky_con.html
>
> Bob
>

They certainly are.  After putting a system live a couple of years  
ago we found that the VM was mysteriously switching timezone part way  
through the day.  Turned out to be the JDBC driver changing the  
timezone to do a calculation, then changing it back.  Apart from  
being an incredible hack, it was also completely unsynchronized, so  
when the system was under load one thread would change it, then  
another would store the changed value as the one it should restore it  
to, after which the VM was permanently in the other timezone.

Mark



More information about the coin-dev mailing list