You should have a look at the OSGi Enterprise specifications that has a whole chapter targetted at using JDBC inside OSGi. See http://www.osgi.org/Download/File?url=/download/r4v42/r4.enterprise.pdf
On Mon, May 23, 2011 at 18:15, jie yan <[email protected]> wrote: > With the help of some engineers in Karaf forum, I've wrapped an Oracle > driver bundle. > > But I can't find the suitable way to create a JDBC driver in my Oracle > client bundle. > > Attempt 1: > 1) <Import-Package>oracle.jdbc</Import-Package> > 2) Class.forName("oracle.jdbc.OracleDriver"); > Failed. > > Attempt 2: > 1) <Import-Package>oracle.jdbc</Import-Package> > 2) static{ > DriverManager.registerDriver(new oracle.jdbc.OracleDriver()); > } > Failed. > > How could I do? > > Regards, > drhades > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com Connect at CamelOne May 24-26 The Open Source Integration Conference http://camelone.com/
