org.hsqldb
Class Server

java.lang.Object
  extended byorg.hsqldb.Server
Direct Known Subclasses:
WebServer

public class Server
extends java.lang.Object

Server acts as a database server and is one way of using the client-server mode of HSQL Database Engine. This server can only process database queries.

An applet or application will use only the JDBC classes to access the database.

The Server can be configured with the file 'server.properties'. This is an example of the file:

 server.port=9001

server.database=test

server.silent=true

If the server is embedded in an application server, such as when DataSource or HsqlServerFactory classes are used, it is necessary to avoid calling System.exit() when the HSQLDB is shutdown with an SQL command.
For this, the server.no_system_exit property can be set either on the command line or in server.properties file. This ensures that System.exit() is not called at the end. All that is left for the embedder application server is to release the "empty" Server object and create another one to reopen the database (fredt@users).


Constructor Summary
Server()
           
 
Method Summary
static void main(java.lang.String[] arg)
          Method declaration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server()
Method Detail

main

public static void main(java.lang.String[] arg)
Method declaration

Parameters:
arg -


Copyright © 2001 - 2002 HSQL Development Group. All Rights Reserved.