Hi all
From the specifications, it noted that a
servlet container may snd concurrent requests through the service() method of the servlet and that to handle the requests the developer of the servlet must make adequate provisions for concurrent processing with multiple threads in the service method.
In the event that say we need to have an object shared concurrently by various users, what are the mechanisms to ensure that the state of this object is correct ?
Using SingleThreadModel or synchronize the servive() method do not resolve the issue and using
ejb seems to be an overkill.
Any suggestions ?