Corrected shutdown of H2 embedded DB
Project: http://git-wip-us.apache.org/repos/asf/ode/repo Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/c3212d80 Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/c3212d80 Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/c3212d80 Branch: refs/heads/master Commit: c3212d804b65098d45285e9b996ecfb7a5f60938 Parents: 8e4d2e1 Author: sathwik <[email protected]> Authored: Tue Nov 28 13:16:49 2017 +0530 Committer: sathwik <[email protected]> Committed: Tue Nov 28 13:16:49 2017 +0530 ---------------------------------------------------------------------- .../src/main/java/org/apache/ode/il/dbutil/H2EmbeddedDB.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ode/blob/c3212d80/bpel-epr/src/main/java/org/apache/ode/il/dbutil/H2EmbeddedDB.java ---------------------------------------------------------------------- diff --git a/bpel-epr/src/main/java/org/apache/ode/il/dbutil/H2EmbeddedDB.java b/bpel-epr/src/main/java/org/apache/ode/il/dbutil/H2EmbeddedDB.java index e75cdcc..51876fc 100644 --- a/bpel-epr/src/main/java/org/apache/ode/il/dbutil/H2EmbeddedDB.java +++ b/bpel-epr/src/main/java/org/apache/ode/il/dbutil/H2EmbeddedDB.java @@ -71,11 +71,11 @@ public class H2EmbeddedDB extends InternalDB { __log.error("unable to shutdown connection pool", ex); } } - try { + /*try { Connection conn = getDataSource().getConnection(); conn.createStatement().execute("SHUTDOWN"); } catch (Throwable ex) { __log.debug("Error shutting down H2.", ex); - } + }*/ } }
