in taverna-commandline-common/src/main/java/org/apache/taverna/commandline/data/DatabaseConfigurationHandler.java [99:113]
public void testDatabaseConnection()
throws DatabaseConfigurationException, NamingException, SQLException {
//try and get a connection
Connection con = null;
try {
con = databaseManager.getConnection();
} finally {
if (con!=null)
try {
con.close();
} catch (SQLException e) {
logger.warn("There was an SQL error whilst closing the test connection: "+e.getMessage(),e);
}
}
}