简体   繁体   中英

BoneCP 0.7.1.RELEASE and hibernate 4.1.*

I try to add BoneCP to hibernate and have:

java.lang.ClassNotFoundException: org.hibernate.connection.ConnectionProvider

I couldn't find this interface in new hibernate packages and have 2 questions :

1) Could you share link or example how to manually configure BoneCP 0.7.1 with hibernate 4.1.*? (I only added connection.provider_class=com.jolbox.bonecp.provider.BoneCPConnectionProvider in hibernate.cfg.xml)

2) Someone tested BoneCP 0.8.0-alpha1? It's work good with new hibarnate, but has scary "alpha1" in version

Thank for your time.

1) The JVM cannot find the ConnectionProvider interface because it moved to a different package from Hibernate 3 to Hibernate 4 , so you'll need to use BoneCP 0.8.0-alpha1.

2) So far it hasn't caused me any problems, but others should contribute their experience.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM