throw sqlEx;\r
}\r
}\r
+ finally {\r
+ if (connection != null && !connection.isValid(1)) {\r
+ connection.close();\r
+ connection = null;\r
+ }\r
+ }\r
} while (connection == null);\r
}\r
}\r
- if (connection != null && !connection.isValid(1)) {\r
- connection.close();\r
- connection = null;\r
- }\r
+\r
}\r
return connection;\r
}\r