Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

lock and unlock

 
wael Hassanin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...i`m useing RMI approche and implement the booking method out side the data class inside the server side and it is synchronized and in it i call lock then modify then unlock i have only one object of data class the questions are :
1- i didn`t check for who has the lock i just wait the other am i did what sun wants from me or should i get the client who make the lock and deal with him(if the answer is no how can i got a client id).
2- what about if some one call lock directly which mean he can also call unlock which is not correct at all..
can u told me how u deal with lock and unlock in yr design...
thanx
wael
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wael, if you do a search on this forum on Connection object, you will find many threads dealing with your question and give you great answers. Also search on client ID, there is one that is currently running that you should see on your Forum page.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic