Hibernate startup very slow

前端 未结 5 1308
遇见更好的自我
遇见更好的自我 2020-12-15 17:20

For some reason, the startup of my hibernate application is unbarrably slow. (up to 2 min) I have been thinking that the c3p0 configuration is plain wrong (related question)

5条回答
  •  天命终不由人
    2020-12-15 17:54

    What container are you using? c3p0 should be installed in the container, e.g Tomcat. If you are running unit tests, for chrissakes, don't use a connection pool. If you put it into tomcat, you do that with a Resource tag and then connect to it using JNDI. Best way to do it.

提交回复
热议问题