I've got quite far with a project (student), and now I'm thinking I should synchronize some of my database access methods.
I've got one class called DataBean which is an application scope bean, and which contains all of the methods that access the database. What I'm trying to figure out is how I should organise synchronizing some of its methods. I can't seem to relate this situation to the chapter I read about threads, which specifically creates and destroys threads. With
JSP, I'd have thought it's different sessions whose access I want to synchronize?
Please can anyone throw any light on the question?
Thanks