This is an exercise to implement a simple nio socket server/client using JAVA NIO package.
- implement nio server/client.
- server can handle incoming requests in parallel.
- DB file is in xml files, when server start, those data will be loaded into memory.
- client can send request to add/remove/list data.
- server has an another thread to regularly save updated data from in-memory to data file.
- doc/server.jpg, to show UML class diagram for server side.
- doc/client.jpg, to show UML class diagram for client side.
- install jdk
- install ant
- run "ant" to build.
- run "java -cp ./dist/classes/ app.server.startup.Server" to start server.
- run "java -cp ./dist/classes/ app.client.startup.Client" to start client.