<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Working with DataSources</title><meta content="DocBook XSL Stylesheets V1.76.0" name="generator"><link rel="home" href="index.html" title="Virgo Programmer Guide"><link rel="up" href="ch07.html" title="Chapter 7. Working with Common Enterprise Libraries"><link rel="prev" href="ch07.html" title="Chapter 7. Working with Common Enterprise Libraries"><link rel="next" href="ch07s03.html" title="Weaving and Instrumentation"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><td align="left" width="20%"><a accesskey="p" href="ch07.html">Prev</a> </td><th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="ch07s03.html">Next</a></td></tr></table><hr></div><div class="section" title="Working with DataSources"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="common-libraries-datasources"></a>Working with DataSources</h2></div></div></div><p> | |
Many <code class="literal">DataSource</code> implementations use the <code class="literal">DriverManager</code> | |
class which is incompatible with typical OSGi class loading semantics. To get around this, | |
use a <code class="literal">DataSource</code> implementation that does not rely on | |
<code class="literal">DriverManager</code>. Versions of the following | |
<code class="literal">DataSources</code> that are known to work in an OSGi environment are available in the | |
<a class="ulink" href="http://www.springsource.com/repository" target="_top">SpringSource Enterprise Bundle Repository</a>. | |
</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p> | |
<a class="ulink" href="http://www.springsource.com/repository/app/bundle/detail?name=com.springsource.org.apache.commons.dbcp" target="_top">Apache Commons DBCP</a> | |
</p></li><li class="listitem"><p>SimpleDriverDataSource available in | |
<a class="ulink" href="http://www.springsource.com/repository/app/bundle/detail?name=org.springframework.jdbc" target="_top">Spring JDBC</a> | |
2.5.5 and later | |
</p></li></ul></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ch07.html">Prev</a> </td><td align="center" width="20%"><a accesskey="u" href="ch07.html">Up</a></td><td align="right" width="40%"> <a accesskey="n" href="ch07s03.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%"> </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> </td></tr></table></div></body></html> |