Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 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();
     }
 }