5.2. Run JBoss Data Grid (Library Mode)


Use the provided instructions to run Red Hat JBoss Data Grid with Maven in Library mode.
  1. Add the following mandatory dependency to the pom.xml file:
    <dependency>
       <groupId>org.infinispan</groupId>
       <artifactId>infinispan-core</artifactId>
       <version>6.1.0.Final-redhat-4</version>
    </dependency>
  2. Add the desired dependencies from the following to the pom.xml file:
    • Embedded query dependency:
      <dependency>
         <groupId>org.infinispan</groupId>
         <artifactId>infinispan-query</artifactId>
         <version>6.1.0.Final-redhat-4</version>
      </dependency>
    • JDBC Cache Store dependency:
      <dependency>
         <groupId>org.infinispan</groupId>
         <artifactId>infinispan-cachestore-jdbc</artifactId>
         <version>6.1.0.Final-redhat-4</version>
      </dependency>
    • JPA Cache Store dependency:
      <dependency>
         <groupId>org.infinispan</groupId>
         <artifactId>infinispan-cachestore-jpa</artifactId>
         <version>6.1.0.Final-redhat-4</version>
      </dependency>
    • LevelDB Cache Store Dependency:
      <dependency>
         <groupId>org.infinispan</groupId>
         <artifactId>infinispan-cachestore-leveldb</artifactId>
         <version>6.1.0.Final-redhat-4</version>
      </dependency>
       
      <dependency>
         <groupId>org.fusesource.leveldbjni</groupId>
         <artifactId>leveldbjni-all</artifactId>
         <version>1.13-redhat.002</version>
      </dependency>

      Note

      For the LevelDB Cache Store dependency, ensure that you have the same version of leveldbjni-all as specified in the JBoss Data Grid maven repository.
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top