On 02/04/2015 02:50 PM, David M. Lloyd wrote:
> try/catch/finally is a good thing.
Connection objects are AutoCloseable, so you can even do:
try (Connection c = ds.getConnection()) {
// do stuff
}
Simple and clean.
Hopefully it will make it into the JCA spec some day :) We are still
using bow and arrow in many cases.