I want to able to have a client/server application which can perform the following:
- Have client send "java task instructions" (ex. name of method, class to run or app to execute) to a remote server
- server receives the task execution details and launches a new JVM and loads the classpath etc...
- server executes the task
- server stores the task response in a cache
- shuts down the new JVM
- server continues to wait for further executable task details which could reference object in cache by name
What is the best APIs to implement this in Java if I don't want to use RMI? Do I want to establish a connection by using a socket or is there an easier API?
From what I know, correct me if im wrong, I cannot use ProcessBuilder to execute a static method or to get a response.
thanks in advance
Aucun commentaire:
Enregistrer un commentaire