• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Some questions

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much!
 
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic