[wildfly-dev] Transactions in Batch (JSR 352)

Jesper Pedersen jesper.pedersen at redhat.com
Wed Feb 4 14:53:35 EST 2015


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.



More information about the wildfly-dev mailing list