creating a DB connection pool using ServletContext feature

admin

Administrator
Staff member
James Goodwill in his "Developing Java Servlets" book talks aboutdeveloping a pool of database connections to be managed by a Servlet andpassing the Connection objects to other Servlets to be returned when theyare no longer needed and placed back into the pool.This seemed like a good plan until I tried to us it. All seems to go welluntil I call the same servlet a second time. The HTML page that should begenerated is displayed as blank. I have had this happen before with a incorrectlystructured SQL query. Therefore, I assume, that the passed Connection objectto the calling Servlet is somehow broken.Any suggestions?
 
Back
Top