Gavin,
I hate to play devil's advocate, but how do you get around the webapp reload problem with C3P0? Every time my webapp reloads, c3p0 gets orphaned and hangs around while a new C3P0 instance is created.
I posted on this forum how the newer beta C3P0 includes a way to close C3P0 up but I'm wondering what the current solutin is?
I ended up switching to DBCP so I wouldn't have memory problems. My research didn't find anything (unless I stink at web searches) since I'd found the 2.0.3 hibernate C3P0 close function does nothing (no code in the function). :(
Thanks for any suggestions (other than: don't reload, shut fully down and restart Tomcat [4.1.24]),
David
|