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