• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FBN : StandAlone mode

 
Akshay Sharma
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If we run the FBN assignment mode in the standalone mode then we are not using RMI or sockets.
If a user happens to start two clients from the same machine in the standalone mode. In effect we are having two JVM's running.
db.db file is part of client.jar
How do we make sure that we dont end up screwing the data file because our locking etc will be handled in the JVM.
In case of remote clients we can handle this because all our i/o access to the file is via one single class on the RMI server.
But in the standalone case havingmultiple clients.
we will definitely end up screwing the data file..
Any advises/suggestions/clues.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11854
185
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Akshay
I dont think we have to worry about someone starting two separate applications using the same DB.
In the new assignment it is specifically stated that we dont have to worry about this.
Regards. Andrew
 
Akshay Sharma
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then it should be fine.
Otherwise this will be really tricky.
But Andrew I am doing the old FBN assignment.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11854
185
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Akshay
Sorry I wasnt clear. I did see that you had mentioned that you were doing FBNS. I also did this. I did not try to handle the case where two applications could both write to the file at the same time.
My comment about the new assignment was just for information - if they have explicitly stated it is not required in the new assignment, then I think it is reasonable to assume the same for the old assignment.
Regards, Andrew
 
Damian Ryan
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Andrew.
Just make sure you explicitly state this assumption in the list of assumptions you include with your design choices document.
 
Akshay Sharma
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure guys....
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic