Hello,

I'm trying to setup the Apache DBCP in such a way that it is OSGi-friendly.
 The default configuration mechanism isn't that friendly, because it
expects static registration of Drivers (i.e.: once it's loaded, it can't be
reloaded, and usage of Class.forName(...)), as in the "driverClassName"
parameter :
http://commons.apache.org/proper/commons-dbcp/configuration.html

I found what appears to be a step in the right direction here:
http://commons.apache.org/proper/commons-dbcp/apidocs/org/apache/commons/dbcp/DriverConnectionFactory.html

...where I can install DBCP as a bundle, the driver as a bundle (with
perhaps a fragment that publishes the java.sql.Driver as an OSGi service),
and a bundle that tracks instances of java.sql.Driver and instantiates
connections, but I'm a little unsure of how to get this fully working.  Has
anyone a working example that could help?

Thanks,
Christopher

Reply via email to