Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Local DB Access

 
Matt DeLacey
Ranch Hand
Posts: 318
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I know this topic has been posted many times before, but I don't think I've ever seen a definitive answer. If the user wants to run in local mode, do we still have to make the local db access threadsafe, or can we assume that only one client will be accessing the db at a time in local mode? Also, you cannot implement "local" mode as just the same as networked mode but give the address as localhost, can you? Thanks.
With Respect,
Matt DeLacey
 
Sam Wong
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am assuming that local access will mean no concurrent access to the database. This means you may not need record locking but it should still be threadsafe.
The document states that local mode will not have network functionality. So no RMI/socket in local mode. As long as this is respected, I suppose you can start localmode how ever you deem appropriate.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!