I started writing SQL in my JSP files. I moved my SQL into my DAO class files - this is better. I implemented DBCP (DataBase Common Pool), really more efficient. Then I discovered Hibernate and never looked back. Follow me http://www.hibernate.org
Kind regards mc On 23 Sep 2005 at 11:44, Koen Jans wrote: > This is probably a newbie question.. > > From the examples i studied, it looks like most applications store a > reference to a database in servlet context.. If i figured it out the > right way, this means all clients using the webapplication, share this > same reference? > > Would it be a good idea to store other things in servlet context, for > instance in a CRUD-type application, where i want to > create/update/delete accounts. > > Is it okay to place an AccountHandler in servlet-context? This handler > would have a connection to a database, and methods for creating, > updating and deleting accounts. > > Thanks for your time. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.344 / Virus Database: 267.11.4/109 - Release Date: 21/09/2005 > FOCUS Computing Mob: 0415 24 26 24 [EMAIL PROTECTED] http://www.focus-computing.com.au -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.4/109 - Release Date: 21/09/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]