• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

questions on the unique lock manager among different JVM

 
sf chan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I plan to have single lock Manager (singleton) on the server side but how can I enforce this on different JVM when I am using RMI?
Thanks for any help,
Wanders
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You just answered your own question. You should not have a lock manager that is singleton. Make your lock manager such that it is on per Data object or per db.db file. What if you have two files one db.db and other db1.db. Your design does not address that. If you search this forum for Lock Manager, like I did you will find several more reasons why lock manager should not be singleton.
HTH
-Amish
Originally posted by wapdev wanders:
Hi,
I plan to have single lock Manager (singleton) on the server side but how can I enforce this on different JVM when I am using RMI?
Thanks for any help,
Wanders

[ March 13, 2003: Message edited by: Amish Patel ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic