Chapter 5. Run Red Hat JBoss Data Grid JAR Files with Maven

5.1. Run JBoss Data Grid (Remote Client-Server Mode)

Use the following instructions to run Red Hat JBoss Data Grid JAR files with Maven in Remote Client-Server mode.
Hot Rod Client without Querying

Add the following dependencies to the pom.xml file:

  1. Add the mandatory infinispan-commons dependency:
    <dependency>
       <groupId>org.infinispan</groupId>
       <artifactId>infinispan-commons</artifactId>
       <version>6.1.0.Final-redhat-4</version>
    </dependency>
  2. Add the mandatory infinispan-client-hotrod dependency:
    <dependency>
       <groupId>org.infinispan</groupId>
       <artifactId>infinispan-client-hotrod</artifactId>
       <version>6.1.0.Final-redhat-4</version>
    </dependency>
Hot Rod Client with Querying

Add the following dependencies to the pom.xml file:

  1. Add the mandatory infinispan-commons dependency:
    <dependency>
       <groupId>org.infinispan</groupId>
       <artifactId>infinispan-commons</artifactId>
       <version>6.1.0.Final-redhat-4</version>
    </dependency>
  2. Add the mandatory infinispan-client-hotrod dependency:
    <dependency>
       <groupId>org.infinispan</groupId>
       <artifactId>infinispan-client-hotrod</artifactId>
       <version>6.1.0.Final-redhat-4</version>
    </dependency>
  3. Add the following dependencies:
    <dependency>
       <groupId>org.infinispan</groupId>
       <artifactId>infinispan-query-dsl</artifactId>
       <version>6.1.0.Final-redhat-4</version>
    </dependency>
     
    <dependency>
       <groupId>org.infinispan</groupId>
       <artifactId>infinispan-remote-query-client</artifactId>
       <version>6.1.0.Final-redhat-4</version>
    </dependency>