db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@debrunners.com>
Subject Re: SQL Exception: Connection refused : Invalid authentication.
Date Sat, 22 Oct 2005 19:14:42 GMT
Arne Anka wrote:

> 
> the only thing possible i could imagine (but not test atm), is a
> conflict  between
> prop.setProperty("derby.user.username", "password");
> SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.user.username','password')");

You use SYSCS_SET_DATABASE_PROPERTY to define the user in the database
for the builtin authentication scheme. Eg.

SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.user.arne','cat76dog')");


Then when you connect to derby you pass in the user name and password
values using the property keys 'user' and 'password'. This is because
user/password is the standard as defined by JDBC.

E.g.

prop.setProperty("user", "arne");
prop.setProperty("password", "cat76dog");

Dan.




Mime
View raw message