4 Replies Latest reply on Oct 22, 2012 5:28 PM by matlach

    how to submit a task everywhere, but here

    matlach

      Hello everyone,

       

      I was looking at the DistributedExecutorService interface and the DefaultExecutorService implementation and I was wondering if there was any way to submit a task everywhere but here (all the other nodes) using the distributed execution framework.

       

      Basically what I want to achieve here is to execute two different runnables in parallel :

      the first runnable would be executed locally, while

      the second runnable would be executed on all the other nodes in the cluster.

       

      In the end I guess I could extends the DefaultExecutorService though I was wondering if there was anything else I'm not thinking that could be more effective?

      maybe to have my runnable be aware of it is origin so then I could submit everywhere?.

       

      Big thanks,