DistributedExecutorService works with non-remote caches. I am not sure about your particular requirements but simply create DistributedExecutorService using a particular cache obtained from a CacheManager and invoke distributed tasks on the cluster. Look at the demos if you are still in doubt how to use it!
Thanks for the follow up. Yes, basically what we were asking was whether we could use the DistributedExecutorService with a HotRod server deployment, and it seems that the answer is no. Because then we're talking about RemoteCaches. Right?
For our app (RHQ), we don't think we want to have the RHQ server also be an ISPN node as it would potentially take away from RHQ cycles and also require a cacheStore (we're thinking Jdbm) on the RHQ Server machine. Also, we think we'd like to be able to cycle RHQ servers without actually cycling the ISPN node and incurring state transfer on startup. We are planning to use Distribution mode. This is what had led us towards an ISPN server approach, despite the overhead of the data transfer between client and server. But we want MapReduce and DistributedCallables.
Assuming we stick with the RHQ server not being an Infinispan node, the alernative will likely be to use a P2P deployment of nodes where we "simulate" a client-server deployment. Probably making each node an AS7 server with a lightweight app that can perform what we need on the local cache and also communicate with the RHQ server in some way to service requests.
Any thoughts much appreciated.
No, you are right. No support for distributed execution over HotRod yet. Another thing you might try is to have Infinispan deployed in AS7 and do remote invocation. I've seen examples where people embed Infinispan in AS7, do distributed execution and map/reduce but they invoke it remotely through REST. I suppose you can do remote EJB invocation and such. Experiment and find the best solution for your particular needs. You seem to know what you are doing :-)