Я пробовал использовать свойства.
Код: Выделить всё
Properties info = new properties();
info.put(user,"username");
info.put(password,"password");
info.put(connection lifetime, 0);
DriverManager.getConnection(server,info)
Подробнее здесь: https://stackoverflow.com/questions/402 ... nd-timeout
Мобильная версия