JDBC Driver Manager configuration for Derby and HSQLDB

Sample HSQLDB configuration

Class.forName("org.hsqldb.jdbcDriver");
String url = "jdbc:hsqldb:file:src/main/resources/db/db.hsqldb";
String username = "sa";
String password = "";
connection = DriverManager.getConnection(url, username, password);

Sample DERBY configuration

String url = "jdbc:derby:memory:INMEMORYDB;create=true";
connection = DriverManager.getConnection(url);

Komentarze

Popularne posty z tego bloga

Set up JBoss AS 5.1.0 and Seam 2.2.0 in Ubuntu 9.04