how to configure connection pooling in JPA/Hibernate application (Without Spring)?


This question already has an answer here:


Back in the old days, you had to load the appropriate driver class using Class.forName(org.postgresql.Driver.class) construct. With JDBC 4.0 drivers it's no longer necessary - but you may give it a try.

Alternatively, try starting your application with -Djdbc.drivers=org.postgresql.Driver, it does virtually the same as Class.forName snippet, but doesn't require you to hardcode the driver class. Hope it helps.

From the answer

I am able to resolve the problem.

And after apending this line to c3p0-config.xml

<property name="driverClass">org.postgresql.Driver</property>

Need Your Help

C# List of objects, how do I get the sum of a property

c# list sum

I have a list of objects. One property of the individual object entry is amount. How do I get the sum of amount?

Grunt with Jasmine/Mocha: accessing tests on filesystem or through webserver?

javascript gruntjs jasmine mocha

I am setting up a testing environment for a client-side javascript project.