hsqldb v.1.61 Client/Server Demo / WebServer

This document contains just a link to download the demo program from the small local web server. This is because most browsers do not allow by default an applet to connect to a different URL than it was downloaded from. Before clicking on this link, you need to start the server first:

How to start the server

There is a batch file provided in the demo directory. To startup the application on Windows type:

runWebServer

The server will consume this command window. To display the command line options of the WebServer, type:

runWebServer -?

After you have started the server, you can connect to it using this link:

Client/Server demo (http://localhost/localhost_clientserver.html)

To run the WebServer on a different port

If port 80 is already used, you may also use a different port number. Change the file WebServer.properties, the line 'port=80' to for example 'port=81'. If you want to connect to this database, use then the URL:

http://localhost:81/localhost_clientserver.html

instead of:

http://localhost/localhost_clientserver.html

You will have to change the JDBC URL, too.

How to stop the server

The server closes the database and stops automatically when the command 'SHUTDOWN' is executed. To abort the server, press [Ctrl]+[C] (on Windows).

How to clean the database

The database will write to the files 'test.*'. If it is closed and started again, it will automatically re-load the data. To get a a clean database, all 'test.*' files must be deleted.