Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Some questions

 
xin dong
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used max method design lock and unlock.but I find a question.if I want to shutdown the server, How can I make the client booking safe.for example ,it finished lock.just begin book.I think server should let it finish the whole book operation.how should I deal with it?
and another question is :if I put the xxx_stub.class to client.there is no need to provide codebase paremeter in console?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Xin
if I want to shutdown the server, How can I make the client booking safe.for example ,it finished lock.just begin book.I think server should let it finish the whole book operation.how should I deal with it?

I made the locking of the entire database have higher precedence that aquiring new locks. So as long as someone was attempting to lock the entire database, then noone else could gain an individual lock.
However the lock for the entire database was not granted until all existing locks were released.
So by default, if someone had locked a record for update, then the update would continue and the lock would be released before the lock of the entire database succeeded.
if I put the xxx_stub.class to client.there is no need to provide codebase paremeter in console?

Correct.
Regards, Andrew
 
xin dong
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic