|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
synchronization question
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 |
|
#2
|
|||
|
|||
|
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
![]() |
|
#3
|
|||
|
|||
|
Thanks, that's what I did... At least one thing with a simple solution!
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > synchronization question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|