why not all threads use one established connection instead of!_NEWLINE_!getting a connection from pool
0 posts in topic
Flat View  Flat View

Posted By:   rui_yu
Posted On:   Monday, May 7, 2001 12:15 PM

It's said using JDBC connection pool can reduce the overhead
to establish a connection.
Suppose I have an object and a method which
may be used multithreadedly.
Can I establish a JDBC connection in the constructor of the object,
and the method just use this connection?
Since the method just use this connection to execute one very simple
sql query statement, do I have to get a new connection in
this method? Can one JDBC connection be used multithreadedly?

About | Sitemap | Contact