title: Using PreparedStatement pooling in dbcp
body: <p>Can someone explain how exactly prepared connection pooling using dbcp can be used? (with some example code if possible). I've figured out how to turn it on - passing a KeyedObjectPoolFactory to the PoolableConnectionFactory. 
  But how should the specific prepared statements be defined after that?
  Right now I'm only using a PoolingDataSource to get connections from the pool. How do I use the prepared statements from the pool?</p>