Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

standalone mode and threadsafe, Doubt?

 
Leif Huang
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The SCJD2 assignment states:

Non-Networked Mode
In this mode, the database and User Interface must run in the same VM and must perform no networking, must not use loopback networking, and must not involve the serialization of any objects when communicating between the User Interface and database elements.

My doubt is:
If non-networked ( or standalone) mode and server mode run in the same machine, at the same time.
Do they need 2 database files?
If not, how to achieve thread safe?
if yes, how to achieve data integrity?
Thanks for any help!
Leif
 
Junilu Lacar
Bartender
Pie
Posts: 8891
81
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Leif,
Don't try to read too much into the
requirements. Keep things simple and stick with what is explicitly asked for. As long as you can run in either mode, you don't need to worry about running in both modes at the same time if this is not explicitly stated in the requirements.
If you feel you really need to say something about the situation you have in mind, you might want to document it in your design choices documentation as an issue that you are aware of.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic