Hi,

The .h2.server.properties file is read even if you start the server
using Server.createWebServer. The port in the command line overrides
the port in the config file, however if ssl is enabled in the config
file, you can't override this in the command line (you can only enable
it in the command line, not disable).

In the newest version of H2, you can set the directory where the
properties file is loaded. However, it needs to be a directory that
exists. If you don't want to use the stored .h2.server.properties
file, you could use (it's a workaround, only works when since H2
version 1.2.147, it's using an in-memory file system to load and store
the server config):

Server.createWebServer("-properties", "memFS:").start();

This is a bit ugly. For the next version, the following will be
supported to mean "do not load or store any properties":

Server.createWebServer("-properties", "null").start();

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to