Hi,
I’m trying to embed clover etl engine in my application using clover API.
BTW i’m facing a problem with “org.jetel.connection.jdbc.DBConnection” object.
I’ve the requirements to build DBConnection objects starting from a “javax.sql.Datasource”
object created and managed by my application ( via apache commons-dbcp ).
I’ve just read other post in forums saying to use “JNDI” for this but this *is not a solution for me*
and in some real situation, assuming to have a JNDI context to lookup datasource is a bit
restrictive ( In particular i’m managing datasource objects using osgi declarative services ).
Looking at the code it seems not difficult, to modify the DBConnection object to achieve this.
It should be enough to add a constructor in “org.jetel.connection.jdbc.DBConnection” taking a javax.sql.Datasource
as parameter and modify the code of DBConnection connect method to take the connection from the Datasource
if the object has been built using Datasource.
Do you’ve any thought on this??
Thx in advance for the support
Andrea Zoppello