google pierwszy link..
Allowing a Connection to Open or Create a Database Link
If the server.remote_open property is** true**, the Server works differently from the normal mode. In this mode, it is not necessary to have any databases listed as server.database.0 etc. in the Server startup properties.
If there are databases listed, they are opened as normal. The server does not shutdown when the last database is closed. In this mode, a connection can be established to a database that is not open or does not exist. The server will open the database or create it, then return a connection to the database.
The connection URL must include the path to the database, separated with a semicolon from the alias. In the example below, the database path specified as** file/files/mydatabase **is opened and the database alias xdb is assigned to the database. After this, the next connection to the specified alias will connect to the same database. The database path can also point to a mem: database. If you use database properties on the URL, these properties are used when the new database is created. If no database proprties are used on the URL, you can also specify the path with filepath=<path>. Examples below:
Connection c = DriverManager.getConnection("jdbc:hsqldb:hsql://localhost/xdb;file:C:/files/
mydatabase", "SA", "");
Connection c = DriverManager.getConnection("jdbc:hsqldb:hsql://localhost/
xdb;mem:test;sql.enforce_types=true", "SA", "");
Connection c = DriverManager.getConnection("jdbc:hsqldb:hsql://localhost/xdb;filepath=file:C:/
files/mydatabase", "SA", "");
The path can be a file: or mem: database.