private void Shutdown() { try { connection.Commit(); connection.Close(); connection = null; } catch (Exception ex) { Log.Warn("Exception occurred while closing connection :" + StringUtils.StringifyException (ex)); } finally { try { if (server != null) { server.Shutdown(); } } catch (Exception ex) { Log.Warn("Exception occurred while shutting down HSQLDB :" + StringUtils.StringifyException (ex)); } server = null; } }
private void StartHsqldbServer() { server = new Org.Hsqldb.Server.Server(); server.SetDatabasePath(0, Runtime.GetProperty("test.build.data", "/tmp") + "/URLAccess" ); server.SetDatabaseName(0, "URLAccess"); server.Start(); }
private void StartHsqldbServer() { if (null == server) { server = new Org.Hsqldb.Server.Server(); server.SetDatabasePath(0, Runtime.GetProperty("test.build.data", "/tmp") + "/" + DbName); server.SetDatabaseName(0, DbName); server.Start(); } }