@ Override protected Object openConnection ( ) throws ConnectionException { try { String dataSource = getDataSource ( ) ; if ( dataSource == null ) throw new ConnectionException ( "Missing attribute: " + JDBC_DATASOURCE ) ; DatabaseAccess dbAccess = new DatabaseAccess ( dataSource ) ; dbAccess . openConnection ( ) ; return dbAccess ; } catch ( Exception ex ) { throw new ConnectionException ( ConnectionException . CONNECTION_DOWN , ex . getMessage ( ) , ex ) ; } }
Returns a db connection based on the configured jdbc url or datasource which includes the resource path . Override for HTTPS or other connection type .