• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Server vs. Standalone requirements?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, this makes it clear!

Thank you!
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic