diff --git a/application/jaxrs-mysql-quarkus/src/main/java/webapp/tier/service/MysqlService.java b/application/jaxrs-mysql-quarkus/src/main/java/webapp/tier/service/MysqlService.java index 45c0f02ff..58c442d87 100644 --- a/application/jaxrs-mysql-quarkus/src/main/java/webapp/tier/service/MysqlService.java +++ b/application/jaxrs-mysql-quarkus/src/main/java/webapp/tier/service/MysqlService.java @@ -47,7 +47,8 @@ public class MysqlService implements Database { public boolean connectionStatus() { boolean status = false; - try (Connection con = ds.getConnection()) { + try { + ds.getConnection(); status = true; } catch (SQLException | NullPointerException e) { logger.log(Level.SEVERE, "Status Check Error.", e); diff --git a/application/jaxrs-postgres-quarkus/src/main/java/webapp/tier/service/PostgresService.java b/application/jaxrs-postgres-quarkus/src/main/java/webapp/tier/service/PostgresService.java index 8c6b78bef..fdbea6054 100644 --- a/application/jaxrs-postgres-quarkus/src/main/java/webapp/tier/service/PostgresService.java +++ b/application/jaxrs-postgres-quarkus/src/main/java/webapp/tier/service/PostgresService.java @@ -45,7 +45,8 @@ public class PostgresService implements Database { public boolean connectionStatus() { boolean status = false; - try (Connection con = ds.getConnection()) { + try { + ds.getConnection(); status = true; } catch (SQLException | NullPointerException e) { logger.log(Level.SEVERE, "Status Check Error.", e);