I am using spring framework to create datasource using xapool and jotm.
I want a configurable datasource for oracle and derby.
The following are the bean definitions I am using:
Following are the properties I am using for derby datasource:
Now when i am passing oracle properties for the placeholders the datasource is successfully created.
But when i switch to derby i get the following error.
java.sql.SQLException: Cannot get connection for URL
: No suitable driver found for
Now I am using Maven for dependencies and have made sure that derby is included in the dependency and its also clearly visible in the dependency graph in eclipse.
What else can be the issue. Please put in your suggestions.