Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can Local & Remote client access simultaneously?

 
Rajesh So
Ranch Hand
Posts: 149
  • 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
  • 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