Is it better to wrap a connection tightly around a SQL operation or let a connection persist through the application, if the connection is not a physical connection but an abstraction that comes from a ConnectionPoolDataSource? (I'm using c3p0, for the record.)
Equivalently (I think): If I getConnection() once per application, will c3p0 make that look like a stable connection that doesn't die even if the underlying physical connection(s) die and come back to life?
And if I'm supposed to make the connection ephemeral, how do I program this with persistent prepared statements?