File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLyBird: about synchronized business methods.

 
Ronggen Liu
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

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
 
Taariq San
Ranch Hand
Posts: 192
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Liu Ronggen:
right?


Right.
 
Jeffry Kristianto Yanuar
Ranch Hand
Posts: 759
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't synchronize all the method. I just use J2SE 5.0 locking mechanism and using synchronized keyword on a particular object.

cheers

Jeffry Kristianto Yanuar
SCJP 5.0
SCJA
SCJD (Working on UrlyBird 1.3.2)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic