.append("/persistent_data;create=true;user=").append(user).append(";password=")
.append(password).toString();
}
private static void waitTillServerStarts(String jdbcUrl, String userName, String password, String driver) {
DBUtil dbUtil = null;
try {
dbUtil = new DBUtil(jdbcUrl, userName, password, driver);
} catch (Exception e) {
// ignore
}
Connection connection = null;
try {
if (dbUtil != null) {
connection = dbUtil.getConnection();
}
} catch (Throwable e) {
// ignore
}
while (connection == null) {
try {
Thread.sleep(1000);
try {
if (dbUtil != null) {
connection = dbUtil.getConnection();
}
} catch (SQLException e) {
// ignore
}
} catch (InterruptedException e) {