|
You
can write an utility class kind of thing like ConnectionPool.java which has
methods like public Connection getFreeConnection() and public void
returnConnection(Connection c).
Make
sure that you don't close the connections in your JSPs after use. Let the same
utility class close the connections when it decides they are not
necessary.
So
that you can have the code two aquire a DB connection in one place which
will be easier when you might change the server/driver etc in
future.
|
- Connection in JSPs? Sumit Mishra
- Re: Connection in JSPs? Peter Huber
- Re: Connection in JSPs? Rajasekaran . R, Gurgaon
- Re: Connection in JSPs? ShriKant Vashishtha
- Re: Connection in JSPs? Rajasekaran . R, Gurgaon
- Re: Connection in JSPs? ShriKant Vashishtha
- Re: Connection in JSPs? ShriKant Vashishtha
- Re: Connection in JSPs? ShriKant Vashishtha
- Re: Connection in JSPs? Sourabh Kulkarni
- Re: Connection in JSPs? Galbreath, Mark
- Re: Connection in JSPs? Xavier Cosyns
- Re: Connection in JSPs? Galbreath, Mark
