Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which way is better to initialize connection pool?

 
Ego Tang
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,
I am not sure which is a better way to initialize a connection pool: to initialize it declaratively(e.g. configure it in server.xml in Tomcat), or construct it programmatically(implement ConnectionPoolDataSource)?
Moreover, I am trying to use a disconnected CachedRowSet to cache the returned resultset, do I need to close it after using it?
Many thanks!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic