Skip to content

Instantly share code, notes, and snippets.

View coleman-rik's full-sized avatar

rik coleman coleman-rik

  • usa
View GitHub Profile
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())