delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

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


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

TOP

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

TOP

Thanks, that's what I did... At least one thing with a simple solution!



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

TOP

Back Forum