File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Where do I need synchronization in Servlets?
Joined: Sep 21, 2004
Oct 19, 2004 20:18:00
I am writing some
which allows users to store and retrieve information in MySql database. I am using
I have configured Tomcat for connection pooling and it works. Servlets use a database agent for access to database. Many user may access to server at the same time.
My questions are:
Where do I need synchronization?
Does Tomcat take care of synchronization?
Do I need to create threads in servlets to respond to request?
Can anybody explain to me or refer me to somewhere where I can find some information.
Joined: Aug 15, 2004
Oct 19, 2004 23:13:00
i think you had better read something on
- servlet request/response mechanism
and no tomcat (your servlet container) do not takecare of synchronization stuff.
It is sorta covered in the
JavaRanch Style Guide
subject: Where do I need synchronization in Servlets?
Help using Hypersonic DB with Tomcat
Optimizing Database Connection ?
Hypersonic DB and Tomcat Question
How can servlets sent XML files?
Java.exe application error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014