Connection Pooling using Jetty, in Oracle
You have 3 ways to do it:
- If you are using maven or gradle in your project simply add commons-pool dependency to your pom.xml or build.gradle file (recommended way)
- If you are not using one of the mentioned tools place correct jar in the WEB-INF/lib directory
- The last one is to place jar in ${jettyHome}/lib directory
Make sure that you are using correct version of the commons-pool for your current commons-dbcp implementation
you don't you just use tomcat instead. find it here http://tomcat.apache.org/ :)Note that jetty is only well to be used when you need to make local app development easier.https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.htmlI suggest you start reading up the basics for tomcat
and as you begin to gain a basic understanding of how things work, you should start implementing Connection Pooling
:) Hope this helps.
For Jetty 10.x you could resolve it in the following way,
- Enable
ext module
->java -jar start.jar --add-modules=ext
- In
$JETTY_BASE/start.d/ext.ini
will get created after execution of 1) - Place your oralce jdbc jar file in location
$JETTY_HOME/lib/ext/
- Again start your application ->
java -jar start.jar