Is it possible to use OracleDataSource for some other database except for Oracle?

89 views Asked by At

What I want is to use OracleDataSource with HSQLDB database. Is it possible?

2

There are 2 answers

0
OldCurmudgeon On BEST ANSWER

No you cannot. This is why these classes implement interfaces. Both OracleDataSource and the HSQLDB DataSource implement the javax.sql.DataSource interface so you should use those instead. Then you can swap between them without changing your code at all.

2
carlos gil On

No, it isnt. HSQLDB is an internal database inside Eclipse.