db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@apache.org>
Subject Re: "ERROR 40XD1: Container was opened in read-only mode" when performing SELECT DISTINCT on database in jar
Date Mon, 19 Feb 2007 17:58:14 GMT
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().


View raw message