destroy() within Servlets
0 posts in topic
Flat View  Flat View

Posted By:   brett_haas
Posted On:   Tuesday, November 13, 2001 10:32 AM

Is it a good idea or worth wide to call a method which will release you
connections in a pool in the destroy() method. For instance:

			public void destroy() {

If so, isn't it worst to have to declare your "Connection Pool" object global
in every servlet that needs a pool, than just create a local instance in your
doXXX() which just gets the pool from a application var?

Won't your connection go away any how once the web server shuts down??

About | Sitemap | Contact