Subject | [Firebird-Java] Re: FBWrappingDatasource problem getting connection |
---|---|
Author | Joachim Van der Auwera |
Post date | 2002-07-10T11:07:16Z |
I have tested using FBDriver with the following code
// register the driver
try {
Driver d =
(Driver)Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();
} catch (Exception e) {
throw new UnidPersistenceException(e,"can't get connection");
}
// create the connection
Connection con;
try {
return
DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:c:/ic-trace.gdb
","SYSDBA","masterkey");
} catch (Exception e) {
throw new UnidPersistenceException(e,"can't get connection");
}
and that works fine, so there is a problen with the FBWrappingDatasource in
my configuration. Still no clues what that could be though.
--
Joachim Van der Auwera
CAB software, Nijlen
joachim@...
// register the driver
try {
Driver d =
(Driver)Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();
} catch (Exception e) {
throw new UnidPersistenceException(e,"can't get connection");
}
// create the connection
Connection con;
try {
return
DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:c:/ic-trace.gdb
","SYSDBA","masterkey");
} catch (Exception e) {
throw new UnidPersistenceException(e,"can't get connection");
}
and that works fine, so there is a problen with the FBWrappingDatasource in
my configuration. Still no clues what that could be though.
--
Joachim Van der Auwera
CAB software, Nijlen
joachim@...