Hello, everyone.
I need comments on when not using the network mode. I have the remote interface ContractorService which provides services to client requests. It has Data as a membe object. The Data is shared by all clients requests, and it serves as the engine[read/write/create/delete] to the database, and it is created when the service implementation object is created.
The ClientUI, keep a reference of the ContractorInterface, upon start up check the mode, assume "server" at this point, and make the connection. It is working, and nicely so far.
then my concern rises when start to think about alone mode. I thought of
doing it by sticking with the ContractorService and create ContractorServiceImp object which will create a Data object accessing a local database file.
Some manipulation may be needed in Data object this way. But will this violate the requiements simply because that the ContractorService being a subinterface of Remote and, I have DatabaseSchema object which implements Serilizable, would this be considered to a violation too?
The program must be able to work in a non-networked mode. In this mode, the database and GUI 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 GUI and database elements.
To make my question clearer, here is what I meant:
This way, the rest of the ClientUI would not have to care about whether it is a network or local database being processed.
And right next to the above requirment is the following and look at this I would think that my approach above violate it. And I don't understand what it means by saying
Architecturally, this mode must use the database and GUI from the networked form:
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 for you patience. It Ihave exposed too much, please advise me to get rid of some.
Bing