do you make the all business methods(in business layer) to synchronized? i think it's not needed, because the locking mechanism will make the operations in one thread behave atomically. right?
Thank you! Ronggen
SCJP 1.4,<br />SCJD Java 2,<br />...
Taariq San
Ranch Hand
Joined: Nov 20, 2007
Posts: 189
posted
0
Originally posted by Liu Ronggen: right?
Right.
Jeffry Kristianto Yanuar
Ranch Hand
Joined: Oct 01, 2007
Posts: 759
posted
0
I don't synchronize all the method. I just use J2SE 5.0 locking mechanism and using synchronized keyword on a particular object.