| Author |
Constant JDBC Connection
|
Daniel Prene
Ranch Hand
Joined: Jul 15, 2005
Posts: 241
|
|
On my webpage visitors will frequently make database querys. Is it possible to run a connection in the background that all servlets will be able to tap into? Like a constantly logged in helper that is available to all servlets? How would I do this? Thanks for atleast reading things, -D.P.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56229
|
|
|
Your best bet in such an environment is container-managed connection pooling.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
An old thread that discusses this in length just resurfaced today. http://www.coderanch.com/t/360733/Servlets/java/it-good-carry-jdbc-Connection
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
 |
|
|
subject: Constant JDBC Connection
|
|
|