I'm trying to understand the purpose and the diference between JdbcDataSource and JdbcConnectionPool.
Based in code either JdbcDataSource or JdbcConnectionPool implement javax.sql.DataSource.
My mains question is: When should I use one or other?
I have created an JNDI entry in jetty like:
<New id="h2ds" class="org.eclipse.jetty.plus.jndi.Resource">
<Arg><Ref refid="itracker" /></Arg>
<Arg>jdbc/itracker_ds</Arg>
<Arg>
<New class="org.h2.jdbcx.JdbcDataSource">
<Set name="url">db-url</Set>
<Set name="password">user-password</Set>
<Set name="user">user-password</Set>
</New>
</Arg>
</New>
Can I assume that org.h2.jdbcx.JdbcDataSource works like a pool or should I use some pool like DBCP or C3P0?