Thomas Kelder wrote:

Considering the static properties, do you know a way to set a static
property from within the java program before loading the driver (so
without using the derby.properties file or a command-line option)? The
only option I could find in the documentation to set the properties
programatically was to use a Properties object when calling
DriverManager.getConnection, but this requires the driver to be loaded
first.

You cannot set Derby properties (derby.*) using the properties object passed to DriverManager.getConnection. That properties object is only for JDBC attributes, like user, create, password etc.

To set a system property, you can use java.lang.System.setProperty().

Dan.

Reply via email to