Got it!
I downloaded the hibernate sourcecode and after some debugging in the ConnectionProviderFactory, turns out that the logic that sets up the C3P0ConnectionProvider wasn't added until hibernate 3.5.*, and I'm using 3.3.1 (woops).
Two solutions: 1. upgrade to the latest hibernate 2. Add this hibernate property to tell hibernate which provider to use: hibernate.connection.provider_class = org.hibernate.connection.C3P0ConnectionProvider
I've gone with (2) for now to avoid the risk of anything else breaking.
|