MySQL best usage in Tomcat?

Posted by mabuzer on Stack Overflow See other posts from Stack Overflow or by mabuzer
Published on 2010-05-30T06:10:09Z Indexed on 2010/05/30 6:12 UTC
Read the original article Hit count: 312

Filed under:
|
|

Which one is better way of using MySQL in Tomcat :
A) assign a DB connection for user as long as it's session is valid. [OR]
B) open connection to DB, on every request come to server and when it's done close that. ?

© Stack Overflow or respective owner

Related posts about java

Related posts about mysql