Domanda

I was using BoneCP for my Java projects. But, unfortunately, I discovered that this pool is unable to recover after the database failure. I am not the only one with such problem (just look at the official forums if you want). As I (and many others) never got answer on bonecp forums, it seems that this project is no longer supported and my issue is unlikely to be fixed.

So, I am looking for an alternative actively developed and supported connection pooling library which is able to handle database outages correctly and recover as soon as database is available again.

È stato utile?

Soluzione

The other major contenders are

  • C3P0 - also more or less abandoned, but very capable
  • Proxool - also abandoned
  • DBCP - abandoned for a long time, restarted.
  • HikariCP - new CP that even the BoneCP author concedes is faster
  • Vibur - modern pool, with metrics and slow query logging
  • Tomcat JDBC Pool - included with tomcat, but can be used standalone

Altri suggerimenti

You might want to look at https://github.com/brettwooldridge/HikariCP. The speed claims are staggering, but it's new and YMMV.

Try jdbc-pool http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html bundled with Tomcat 7.

Here is another connection pool to try, which is fully concurrent and which can handle database outages correctly: http://www.vibur.org/

Just would like to point out that BoneCP development has restarted.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top