关于hibernate的连接池和二级缓存

连接池:
hibernate自带连接池但不推荐在prod中使用。常用可选有c3p0, proxool, dbcp等.也可通过jndi查找。

二级缓存:
hibernate默认没有启用二级缓存,有一个内置的二级缓存可用:HashtableCacheProvider但不推荐在prod中使用。常用的选项有ehcache, oscache, swarmcache, jbosscache等。

reference: http://mestachs.wordpress.com/tag/hibernate/

猜你喜欢

转载自chenss.iteye.com/blog/2043687