Skip to content
Nadeem Mohammad edited this page Sep 10, 2016 · 11 revisions

To distribute the execution of tasks using infinispan, change the execution engine to InfinispanExecutionEngine, to do that follow this steps

Step 1: Add dexecutor-infinispan dependency

  <dependency>
	<groupId>com.github.dexecutor</groupId>
	<artifactId>dexecutor-infinispan</artifactId>
	<version>LATEST_RELEASE</version>
  </dependency>

Step 2: Build the cache manager

Step 3: Create the distributed Executor service using the cache manager

Step 4: Use that Distributed Executor Service to construct Distributed execution engine.

Step 5: Execution

Refer this example for more detail

Refer this Stackoverflow thread for more insight

Refer this blog for more detail