mardi 10 février 2015

Executing java methods and application on remote slave

I want to able to have a client/server application which can perform the following:



  1. Have client send "java task instructions" (ex. name of method, class to run or app to execute) to a remote server

  2. server receives the task execution details and launches a new JVM and loads the classpath etc...

  3. server executes the task

  4. server stores the task response in a cache

  5. shuts down the new JVM

  6. 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