|
|
@ -174,14 +174,19 @@ public class SxPool extends GenericObjectPool implements NamedObjectI { |
|
|
|
lastpart = lastpart.replaceAll("\\?ApplicationName.*", ""); |
|
|
|
lastpart = lastpart.replaceAll("\\?ApplicationName.*", ""); |
|
|
|
String type = getDatabaseAbbr().equals("PG") ? "POSTGRESQL" : "INFORMIX"; |
|
|
|
String type = getDatabaseAbbr().equals("PG") ? "POSTGRESQL" : "INFORMIX"; |
|
|
|
// DatabaseMeta.getDatabaseInterfacesMap() ;
|
|
|
|
// DatabaseMeta.getDatabaseInterfacesMap() ;
|
|
|
|
kettleDatabaseMeta = new DatabaseMeta("eduetl", type, "Native", host, lastpart, port, |
|
|
|
try { |
|
|
|
props.getProperty("connectionName"), props.getProperty("password")); |
|
|
|
kettleDatabaseMeta = new DatabaseMeta("eduetl", type, "Native", host, lastpart, port, |
|
|
|
if (lastpart.indexOf(":INFORMIXSERVER") > -1) { |
|
|
|
props.getProperty("connectionName"), props.getProperty("password")); |
|
|
|
String ixServer = lastpart.substring(lastpart.indexOf(":INFORMIXSERVER") + 16); |
|
|
|
if (lastpart.indexOf(":INFORMIXSERVER") > -1) { |
|
|
|
String dbname = lastpart.replaceAll(":INFORMIXSERVER=.*", ""); |
|
|
|
String ixServer = lastpart.substring(lastpart.indexOf(":INFORMIXSERVER") + 16); |
|
|
|
kettleDatabaseMeta.setDBName(dbname); |
|
|
|
String dbname = lastpart.replaceAll(":INFORMIXSERVER=.*", ""); |
|
|
|
kettleDatabaseMeta.setServername(ixServer); |
|
|
|
kettleDatabaseMeta.setDBName(dbname); |
|
|
|
|
|
|
|
kettleDatabaseMeta.setServername(ixServer); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} catch (Exception e1) { |
|
|
|
|
|
|
|
System.err.println("Fehler bei Kettle DB Einrichtung: "+e1.toString()); |
|
|
|
|
|
|
|
e1.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
|
ConnectionFactory connectionFactory = new DriverManagerConnectionFactory( |
|
|
|
ConnectionFactory connectionFactory = new DriverManagerConnectionFactory( |
|
|
|
this.props.getProperty("connectionURL"), this.props); |
|
|
|
this.props.getProperty("connectionURL"), this.props); |
|
|
|