"jK.MkIII" wrote:
> Wouldn't it be better to use..
> 
> finally {
>     try {
>         if (statement != null) statement.close();
>     } catch (Exception e) {}
>     try {
>         if (connection != null) connection.close();
>     } catch (Exception e) {}
> }

Or even better:

resource = <get resource>
try {
  <work with resource>
} finally {
  resource.close();
}


Best Regards,

Ole Husgaard.

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to