Hi, everyone.
Thank you, Barry, Samuel, and Lucy.
I am back. It took me several days to finish the Deliverables section in my assignment. I use one properties file in the working directory if alone and server mode run in the same directory on the same machine, using different properties names to store the values, such as clientDBPath, serverDBPath, etc. Instead of providing the function that the main Client/Sever GUI modifies the properties file, I do provide same interface, except that a button , say �change�, is visible before a user sees the main Client/Server GUI for 2 times. The button can change the relative properties previously stored in the suncertify.properties file. But I don�t know it is necessary to do so since the instructions simply state that
All configuration must be done via a GUI, and must be persistent between runs of the program. It seems this button �change� is unnecessary. Is it right?
Another question, I first implement the alone mode. It directly uses the Contractor class
which doesn�t implement Serializable interface. and works fine. The user can update or book a record. But in the server mode, the Contractor class must have the following signature, or the JTable doesn�t obtain any data at all.
If I also use this class in the alone mode, can I break the requirements
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. Or Serializable is just a marker interface, so it only indicates that the class which implements it can be serialized, rather than it actually is. In other words, as long as I don�t use loopback networking, I can freely use the class Contractor which has implemented Serializable interface in alone mode. Am I right? I think my solution meets this requirement, right?
Thanks in advance!
Ailsa Cape