Hibernate: What is the connection pool and why is the default one unsuitable for production?

后端 未结 3 828
后悔当初
后悔当初 2020-12-12 17:28

I\'m very unfamiliar with Hibernate and have just started working on a web app that uses it with a MySQL database. I notice that the community documentation tutorial states:

3条回答
  •  一生所求
    2020-12-12 17:43

    When you are dealing with a standalone application there are a couple of pooling managers which have not been maintained by Hibernate. Hibernate never favored one explicit. Over the years many have come and faded again. It is really hard to judge in the end which are best. It is good to check and compare by yourself the projects and how active these are still.

    Here are some recent (2017) pooling recommendations for standalone applications in alphabetic order:

    C3P0 http://www.mchange.com/projects/c3p0/

    Hikari https://github.com/brettwooldridge/HikariCP

    Vibur http://www.vibur.org/

提交回复
热议问题