This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Does anyone have any experience working with c3p0 & Hibernate? I don't even know where to start - there's lots of examples on how to configure c3p0 with Hibernate, but nothing on how to actually start using the connection pool...I'd like to test using threads, but I have no idea how to start on that either. Does anyone have any sample code/tutorial links/advice??
You start using the pool by asking your DataSource for a Connection. Simple as that. When it comes to Hibernate you don't even need to do that, just open a session and load an object. Behind the scenes Hibernate will be using the connection pool. [ February 09, 2007: Message edited by: Paul Sturrock ]