Skip to content

Commit

Permalink
TEIIDDES-2430 changed username/pwd properties to be given to Teiid API
Browse files Browse the repository at this point in the history
via Properties rather than applied to URL
  • Loading branch information
blafond committed Feb 4, 2015
1 parent 08f86f4 commit cc5ee16
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -893,10 +893,13 @@ private IStatus pingJdbc() {
adminSpec.deploy(admin, PING_VDB, new ByteArrayInputStream(adminSpec.getTestVDB().getBytes()));

try{
String urlAndCredentials = url + ";user=" + teiidJdbcInfo.getUsername() + ";password=" + teiidJdbcInfo.getPassword() + ';'; //$NON-NLS-1$ //$NON-NLS-2$
String urlAndCredentials = url + ";"; //$NON-NLS-1$
TeiidDriver teiidDriver = TeiidDriver.getInstance();
teiidDriver.setTeiidVersion(teiidServer.getServerVersion());
teiidJdbcConnection = teiidDriver.connect(urlAndCredentials, null);
Properties props = new Properties();
props.put("user", teiidJdbcInfo.getUsername());
props.put("password", teiidJdbcInfo.getPassword());
teiidJdbcConnection = teiidDriver.connect(urlAndCredentials, props);
//pass
} catch(SQLException ex){
String msg = Messages.getString(Messages.ExecutionAdmin.serverDeployUndeployProblemPingingTeiidJdbc, url);
Expand Down

0 comments on commit cc5ee16

Please sign in to comment.