posted 19 years ago
Hi all,
I have a question about the non networked mode which says "not to use the network server code".
I'm deciding to use the following design on my server implementation:
Networked Mode:
GUI --> ServerAdapter (RemoteServerAdapter)--RMI--> RemoteRoomsServer --> RoomsDAO
Non-Networked Mode:
GUI --> ServerAdapter (LocalServerAdapter) --> RoomsDAO
There would be a factory for the ServerAdapter, which would get the correct implementation based on the mode (alone or server).
The RoomsDAO is the class that communicates with the Data class (which implements DBAccess). By using this approach, both networked and non-networked modes are using the "same code". However the second approach bypasses the network.
My question is:
Is my design compliant with the requirement below?
"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. "
Thanks in advance,
Kiev Gama