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.
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.