August 18th, 2002, 04:01 AM
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?
August 27th, 2002, 01:36 AM
I think you just have to specify that the methods are synchronized. The app server handles all the threading issues. Try it. If it breaks, I was wrong
August 27th, 2002, 03:04 AM
Thanks, that's what I did... At least one thing with a simple solution!