I'm interested in creating a client/server app in java, but not certain which framework to use. Here are simple scenarios to check disk space:
Scenario 1 1. A user would click on a button on a web page console "Get current disk space usage". 2. The servlet would get all machines from a db and ask each one to return their used disk space. 3. Each machine would reply with the used disk space.
Scenario 2 4. Each machine would update a service every 24 hours with its used disk space.
From what I can tell, I need to have a tomcat instance to host a servlet as the console. From here is where it gets murky for me - and hence this question. Would I also need a) a SOAP service for #4? b) a SOAP "client" running on each machine for #2?
I'm just not sure when to use SOAP services vs. RESTful services, etc. Any opinions would be appreciated. Fairly new to java, so apologies for any mis-spoken jargon.