Connections checking in c3p0 pool

前端 未结 3 1930
误落风尘
误落风尘 2021-02-10 07:41

I\'m developing with Java SE application using Hibernate 4 and c3p0 for communication with MariaDB database. It\'s long running application, waiting for signals from outside, so

3条回答
  •  [愿得一人]
    2021-02-10 08:30

    are you sure c3p0 is actually initialized, and that it has the config you expect it to have?

    in your logs, at INFO level, you should see a dump of your c3p0 DataSource's config upon pool initialization. verify that it is there, and that it is the configuration you expect.

    if it is not there, please consider adding the following line to your hibernate.cfg.xml:

     
    

提交回复
热议问题