It's not a secret anymore!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Can Local & Remote client access simultaneously? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Can Local & Remote client access simultaneously?" Watch "Can Local & Remote client access simultaneously?" New topic
Author

Can Local & Remote client access simultaneously?

Rajesh So
Ranch Hand

Joined: Oct 08, 2002
Posts: 136
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

Joined: Apr 20, 2000
Posts: 3252
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can Local & Remote client access simultaneously?
 
Similar Threads
local mode need clarification
Dynamic connection mode changing
Layers in SCJD assignment
FBNS: Package structure review
command line arguments