Red Hat Associate |
 |
Joined: Mon Aug 16, 2004 11:14 am Posts: 253 Location: Raleigh, NC
|
I can't speak to the implementation of that particular driver but think of how JDBC works. You have a Connection, and you use that Connection to prepare a statement. The PS is tied to the Connection and can be reused over and over again. When you pool Connections, you can quite easily pool/cache the PreparedStatements along with it and keep using them. c3p0 helpfully allows you to configure a max per Connection as well as a global max, if I read the documentation correctly.
You seem to be pretty familiar with what's a happening on the wire so why don't you give it a whirl and let us know what you find?
-Chris
_________________ Chris Bredesen Senior Software Maintenance Engineer, JBoss
|
|