|
|
@ -174,6 +174,7 @@ 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() ;
|
|
|
|
|
|
|
|
try { |
|
|
|
kettleDatabaseMeta = new DatabaseMeta("eduetl", type, "Native", host, lastpart, port, |
|
|
|
kettleDatabaseMeta = new DatabaseMeta("eduetl", type, "Native", host, lastpart, port, |
|
|
|
props.getProperty("connectionName"), props.getProperty("password")); |
|
|
|
props.getProperty("connectionName"), props.getProperty("password")); |
|
|
|
if (lastpart.indexOf(":INFORMIXSERVER") > -1) { |
|
|
|
if (lastpart.indexOf(":INFORMIXSERVER") > -1) { |
|
|
@ -183,6 +184,10 @@ public class SxPool extends GenericObjectPool implements NamedObjectI { |
|
|
|
kettleDatabaseMeta.setServername(ixServer); |
|
|
|
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); |
|
|
|
PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory, this, |
|
|
|
PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory, this, |
|
|
|