[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Specifying user and password in the JBC Connection URL ?



Currently there is no way to specify the user and password properties
through a JDBC URL when connecting to a remote database.  If you are
connecting to an embedded database, you can use the following URL;

  jdbc:mckoi:local://[path to db.conf]?user=test&password=test

The JDBC Driver class has a properties object argument as at argument to
the 'getConnection' method that can also map the 'user' and 'password'
values.  I don't know if it's possible to set the username/password
through the properties argument in Tomcat 4?

I've put this on my TODO to fix for 0.93.  I'll change it so the
following URL string will work;

  jdbc:mckoi://localhost/?user=test&password=test

Toby.