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.
I read the SUN spec again before I upload the assignment. There is a question. Look the SUN spec: Non-Networked Mode 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. Network Communication Approach You have a choice regarding the network connection protocol. You must use either serialized objects over a simple socket connection, or RMI. Both options are equally acceptable. Keep in mind that networking must be entirely bypassed in the non-networked mode. Can I use different GUI for Non-Network and Network mode configuration? Can I use different method to get the network server and local service? I don't understand the sentence: networking must be entirely bypassed in the non-networked mode. What's the meaning? Should I must use a same method for network and non-network?
Can I use different GUI for Non-Network and Network mode configuration?
Can I use different method to get the network server and local service?
I don't understand the sentence: networking must be entirely bypassed in the non-networked mode. What's the meaning? Should I must use a same method for network and non-network?
It means, you cannot connect to the local server using the method that you get remote connection. For example, if you use RMI, getting the connection by IP and port, you cannot do this using the IP 127.0.0.1 to get local connection. You cannot invoke any NETWORK funtions to get the local connection. I implement this part as: For network mode, I use RMI, passing URL and port to the remote server to get the server stub (connection). For non-network mode, I simple do this: