|
|
|
@ -174,14 +174,19 @@ public class SxPool extends GenericObjectPool implements NamedObjectI {
@@ -174,14 +174,19 @@ public class SxPool extends GenericObjectPool implements NamedObjectI {
|
|
|
|
|
lastpart = lastpart.replaceAll("\\?ApplicationName.*", ""); |
|
|
|
|
String type = getDatabaseAbbr().equals("PG") ? "POSTGRESQL" : "INFORMIX"; |
|
|
|
|
// DatabaseMeta.getDatabaseInterfacesMap() ;
|
|
|
|
|
kettleDatabaseMeta = new DatabaseMeta("eduetl", type, "Native", host, lastpart, port, |
|
|
|
|
props.getProperty("connectionName"), props.getProperty("password")); |
|
|
|
|
if (lastpart.indexOf(":INFORMIXSERVER") > -1) { |
|
|
|
|
String ixServer = lastpart.substring(lastpart.indexOf(":INFORMIXSERVER") + 16); |
|
|
|
|
String dbname = lastpart.replaceAll(":INFORMIXSERVER=.*", ""); |
|
|
|
|
kettleDatabaseMeta.setDBName(dbname); |
|
|
|
|
kettleDatabaseMeta.setServername(ixServer); |
|
|
|
|
try { |
|
|
|
|
kettleDatabaseMeta = new DatabaseMeta("eduetl", type, "Native", host, lastpart, port, |
|
|
|
|
props.getProperty("connectionName"), props.getProperty("password")); |
|
|
|
|
if (lastpart.indexOf(":INFORMIXSERVER") > -1) { |
|
|
|
|
String ixServer = lastpart.substring(lastpart.indexOf(":INFORMIXSERVER") + 16); |
|
|
|
|
String dbname = lastpart.replaceAll(":INFORMIXSERVER=.*", ""); |
|
|
|
|
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( |
|
|
|
|
this.props.getProperty("connectionURL"), this.props); |
|
|
|
|