Hello,

I was reading an article from jguru,
http://www.jguru.com/faq/view.jsp?EID=161, which had a ref to a posting
from May of 2000 that mentioned that one way to save time on database
connections was to have a connection instance variable that was used each
time to access the database.  Is this an efficient/professional way to
access the database or is it better to have a connection pool and create a
new Connection variable each time you access the database?

Also, i was looking at the examples from apache dbcp, and it had an
example using the DriverManager as well as an example using the
DataSource.  I could not find any good explanations on the web that tell
the difference between the two.  Is there an advantage for using one over
the other?

Fuz

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to