This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Firstly, I test the alone mode. It directly uses the Contractor class which doesn’t implement Serializable interface and works fine. The user can 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 that 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 the alone mode. right?
What is the way to perform the application in both networked mode and non-networked mode. Basically the assignments says that it should work in same VM and also across the network. I plan to use RMI as it takes away most of the implementation issues.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com