Skip to content

Instantly share code, notes, and snippets.

public static Connection getConnectionFromURL(String url)
throws SQLCoreException
{
Connection conn;
Debugger.outW("\n getting connection for:" + url);
DataSource ds = DataSourceFactoryImpl.getInstance().getDataSource(url);
conn = ds.getConnection();
if(conn == null)
throw new SQLCoreException("\n Couldn't get connection (null) for:" + url);
if(conn.isClosed())