Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

B&S Question on instructions

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Non-Networked Mode

The assignment instructions provided to me says:

"The operating mode is selected using the single command line argument that is permitted. Architecturally, this mode must use the database and GUI from the networked form, but must not use the network server code at all."

Could someone please explain me the sentence "this mode must use the database and GUI from the networked form, but must not use the network server code at all".
Thanks in advance.

Mattman
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mattman,

This means that your application, when running in non-networked mode must connect to your database locally, not through an RMI or socket implementation. Maybe this will help; Think of a database class you've written to satisfy the provided interface Sun has given you. In networked mode, your GUI will interact with that class via RMI or sockets. In local mode, your GUI will directly instantiate the database class itself (or maybe a factory class working on behalf of your database class).

I hope this doesn't muddle things further
 
John Mattman
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike, Thank you for your reply. But still i could not interpret the wording networked form.

"this mode must use the database and GUI from the networked form"
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by John Mattman:
Mike, Thank you for your reply. But still i could not interpret the wording networked form.

"this mode must use the database and GUI from the networked form"



I would interpret it the following way: In local mode, the same code for the database and for the GUI must be used as in networking mode.

In other words, the places in the code where a distinction between local and networking mode is made should be minimized to the connection between GUI and database; apart from the communication between client GUI and database, the GUI and the database part should not care (or even know) about whether they are operating in local or networking mode.
 
Would anybody like some fudge? I made it an hour ago. And it goes well with a tiny ad ...
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic