This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can Local & Remote client access simultaneously?

 
Rajesh So
Ranch Hand
Posts: 149
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once the user has selected the connection remote, can a local client also be permitted to use the same "db.db" ?
Once the user has selected the connection as local, can a remote client be permitted to use the same �db.db� ?
I have planned as once the client chooses as local, no RMI client could contact the server. Same for the RMI connection too. But is doing this way right?
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rajesh Rajesh:
Once the user has selected the connection remote, can a local client also be permitted to use the same "db.db"?
No. Only one process (JVM) can safely access the database file at any given time; this means among other things that local and remote mode cannot be combined. You are AFAIK not required to implement any code to enforce this though.
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic