This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I receive my assignment and in the "instructions.html" file have a topic: "Packaging of Submissions" it's indicating only runme.jar file. My Question is: I've to write an Server/Client app in a single JAR? Or runme_client.jar and runme_server.jar. Another question is: If the Data Access is made by SERVER what utility have the app in standalone mode? Does nothing?
Sorry about my english! I'll better
Julio Cesar Lopes Marques
Sun Certified Java Developer 5, Sun Certified Java Programmer 5
What you have to do is create only one runme.jar file, and this file should contain all classes of the 3 modes. Take a look at this other thread, which I think will also be helpful.
The standalone mode is another way of utilizing the application. If the application is started in standalone mode, then everything runs locally, but the server code cannot be used at all. In the end, depending on the way you start the application, some classes won't be used.
Ok i understand,
but on "standalone" one more question is freaking me out. Suppose you start app in standalone mode what is show in JTable? Nothing... i think because the Server would load data is stopped. Or if i click in new button the new data cannot be persisted because the server would be persist data is stopped. What i can do in this case?
Howdy, the stand-alone mode is really bypassing networking (not using the server code). The stand-alone and network mode client use the same GUI. Where to get the data source is depending on how you implement the server code.
Simply put, stand-alone get the data soure directly from say Data class. Network mode get it through server code.
If i understand in both of cases de data access is made but in standalone mode the data access is directly in the .db file, but if the server is running i'll get data requesting from him. Is it?