configFile = args[0];
}
CustomerClient cclient = new CustomerClient();
Config config = ConfigUtil.loadConfig(cclient.getClass().getClassLoader().getResourceAsStream(configFile));
String dbType = null;
String dbURL = null;
String user = null;
String password = null;
if(config.getConnectionInfo().getConnectionProperties().getDriverClass().indexOf(DERBY) != -1){
dbType = DERBY;
}
if(config.getConnectionInfo().getConnectionProperties().getDriverClass().indexOf(MYSQL) != -1){
dbType = MYSQL;
}
if(config.getConnectionInfo().getConnectionProperties().getDriverClass().indexOf(DB2) != -1){
dbType = DB2;
}
//get connection info from config
dbURL = config.getConnectionInfo().getConnectionProperties().getDatabaseURL();
user = config.getConnectionInfo().getConnectionProperties().getUserName();
password = config.getConnectionInfo().getConnectionProperties().getPassword();
System.out.println("connection info from config***************");
System.out.println("dbName:"+dbURL+" user:"+user+" password:"+password);
System.out.println("******************************************");
//dt create/connect/create schema