C3P0 Configurations! Where and How?

后端 未结 4 1536
后悔当初
后悔当初 2021-01-11 17:03

We are implementing a Web App using JPA2.0 and Hibernate3.0. Connection pool configurations are set in persistence.xml located in META-INF folder.


persistence.

4条回答
  •  不要未来只要你来
    2021-01-11 17:33

    I had the same exact issue, my problem was that my web application container (Tomcat) was managing my database connections. I had to move the c3p0 configuration from my persistence.xml file to Tomcat's context.xml. The link Domenic D provided is a great place to start if that's your problem.

提交回复
热议问题