Connection Pooling using Jetty, in Oracle

十年热恋 提交于 2019-12-04 07:27:27

You have 3 ways to do it:

  1. 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)
  2. If you are not using one of the mentioned tools place correct jar in the WEB-INF/lib directory
  3. 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.html I 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.

When i need an Oracle connection pool, i always use ojdbcx.jar with ucp.jar. You can download them from here.

You can find tons of how-tos from Google but there is an easy one(for Jetty 6) here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!