Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting Database inside Servlet

Status
Not open for further replies.

rmarkert

IS-IT--Management
May 2, 2001
11
BR
Which is the most correct way to connect database inside the Servlet? In the init method or service method?

Thanks!
 
Why don't you use the connection pool technique?Then all you have to is use the JNDI to get your connection... Salih Sipahi
Software Engineer.
City of Istanbul Turkey
openyourmind77@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top