Ok, I'm upset so I hope it doesn't come off that way too badly in this question.
The docs and the JPA with Hibernate book are incredibly confusing on this issue of datasources. Google doesn't help much either since many things that come up are outdated or when I've seen this question asked, it seems to remain unanswered.
I understand I can use an external datasource configured for my application container, but I'm still determined to set up a datasource other than the default (whatever that is?) in Hibernate directly in my hibernate config file. I've used DBCP before, but have completely given up trying to get that work to in hibernate, so I figured I'd use C3P0 - but even though I follow the same properties shown here:
https://www.hibernate.org/214.html, I still get the message " Using Hibernate built-in connection pool (not for production use!)"
So how do I use C3P0??? or DBCP???
You'd think this would be covered with some good detail, but it doesn't seem to be. (Also, why do people assume that their server's pool will be that much better? If you aren't in a clustered environment what are apps like Tomat using anyway? My guess is something like DBCP.. so there should be a way I could configure the app to use dbcp or c3p0 without even having to rely on an external server config file. Just set up c3p0 in your hibernate config and be done. However, I can't seem to not get that message about hibernate using the default connection pool. (Is maybe c3p0 it's default? If so, that message should be cleared up.)
How are others setting up their datasource to use c3p0? Thanks so much for some help here.