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

Server vs. Standalone requirements?

 
Johannes Weichsel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

i have recently downloaded the OCM assignment.
Because i am not an native english speaker, i have some problems with understanding, especially concerning the following:

There is one chapter "Server" in the assignment (Bodgitt and Scaper) where the interface DBMain is provided which must be used server-side.
In the description of the non-networked/standalone mode it's said that one must not use the server code at all.

Does that also apply for the interface DBMain? Am i allowed to implement the data access in the standalone mode under usage of my own interface(s)/methods?

Thank you!
 
K. Tsang
Bartender
Posts: 3585
16
Android Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome again to the Ranch.

Let go through what the OCMJD requires:
GUI
network server (done with Sockets or RMI)
data access (reading/writing the file)

Now when it says "standalone" your program meant to read/write the file directly using the provided DBMain interface. When it says "server", your program meant to use the network server code (done in sockets or RMI) to read/write the file through the DBMain interface.

So both modes (standalone and server) use the DBMain interface.

Under the "server" mode, the network server will be running in the background on the same machine or separate machine.

Hope this helps.
 
Johannes Weichsel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, this makes it clear!

Thank you!
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Johannes Weichsel,

First of all, a warm welcome to CodeRanch!

Johannes Weichsel wrote:Because i am not an native english speaker, i have some problems with understanding, especially concerning the following:

The bad news: you'll probably find many parts in the instructions confusing and not very concrete. But that's intentional. Only the "must" requirements you must implement like it's stated (hence their name); otherwise you might risk (automatic) failure. But you are completely free to decide all other things, and there are a lot decisions to be made; there is no right or wrong for those decisions. Just defend/explain the decisions you have made in the choices.txt. The good news: every possible question about this assignment is probably already asked (and answered) in this forum. So using the search function of this forum, you'll very likely to find an answer/solution to your doubts.problems. And if you are still having doubts, a question, or a problem; you can of course still create a new topic in this forum and just share it with us. A quick answer is almost guaranteed

Johannes Weichsel wrote:Does that also apply for the interface DBMain? Am i allowed to implement the data access in the standalone mode under usage of my own interface(s)/methods?

This topic has a question about reusing some server code when running in standalone mode, so it's similar to your question. I implemented a thin client and both my server code as my standalone code use the implementation of the DBMain interface. So you can use the same database access code in both modes.
And I created my own interface (extending the given DBMain interface) to add a few additional methods (and I passed), so I can confirm it is allowed

Hope it helps!
Kind regards,
Roel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic