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. 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.
I have finish the network mode part using RMI, here is my system architecture
Data | BusinessModel(extends UnicastRemoteObject implements Remote) | | (communication over network) | client code
I am now implement the non-network mode, but if I try to create a new instance of BusinessModel without create BusinessModel_Stub and BusinessModel_Skel, a big-fat StubNotFoundException will be thrown. If my system running in non-network mode but must rely on the existence of BusinessModel_Stub, am I violate the requirement? (In non-network, I'm not using any code about binding port or using rmiregstry)
Thanks a lot for answering and happy weekend, Ching-Tien Chang