Here you can find the source of isH2DbAlreadyRunning()
public static boolean isH2DbAlreadyRunning()
//package com.java2s; //License from project: Apache License import java.sql.Connection; import java.sql.DriverManager; public class Main { private static String h2DbJdbcUrl = "jdbc:h2:tcp://localhost:8092/mem:camunda;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE"; public static boolean isH2DbAlreadyRunning() { try {//from w w w. j a v a2 s . com Connection connection = DriverManager.getConnection( h2DbJdbcUrl, "sa", null); connection.close(); return true; } catch (Exception ex) { return false; } } }