Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

thread-safe server question!  RSS feed

 
emil dragan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My server class extends UnicastRemoteObject and implements an interface that contains all the public methods found in Data class. I've added the word synchronized to all these methods in the server class and I've implemented lock/unlock using a HashMap. Is this all I need to do to make sure that my server is thread-safe? I can't think of anything else, therefore any suggestions/questions are welcome.
Thanks!
[ January 09, 2002: Message edited by: emil dragan ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!