Best to use a connection pool.  Look at the Data Sources in Tomcat.

Wade

-----Original Message-----
From: Carlos Pereira [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2003 12:46 PM
To: Tomcat Users List
Subject: JDBC Connection question


Hi list,
my application currently uses ONE connection object to communicate with
the database. The connection is set with an initializer servlet
(load_on_stratup=0), and all users use that connection to retrieve data.

 Is this the best approach, or should i create a connection per user?
Why? Where can i know more?

 The security system works on top of the database, so that's not a
problem. I'm more concerned with performance and concurrency.

Regards and thanks,
Carlos Pereira

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to