Legacy NamedCache API Project Configuration

The following sections detail how to configure a Gradle or Maven project to reference the legacy ScaleOut NamedCache APIs.

Note

The legacy client (NamedCache) API is only available through the ScaleOut API Repository.

Gradle

For Gradle, add the ScaleOut API Repository to your build.gradle by adding the following under repositories:

repositories {
    mavenCentral()
    maven {
        url "https://repo.scaleoutsoftware.com/repository/external"
    }
}

…and then you can add the following JARs relative to your needs and licenses:

The following JARs can then be added, depending on your needs and licenses:

ScaleOut StateServer Libraries

// Use the following for the Java NamedCache
compile group: 'com.scaleoutsoftware.client', name: "jnc", version: '5.15.4.388'
// Use the following for the JSR107 definition backed by ScaleOut StateServer
compile group: 'com.scaleoutsoftware.client', name: "jsr107", version: '1.2'
// Use the following for Spring Sessions backed by ScaleOut StateServer
compile group: 'com.scaleoutsoftware.spring', name: "session", version: '1.1'

ScaleOut StreamServer Libraries

// Use the following for streaming events with ScaleOut StreamServer
compile group: 'com.scaleoutsoftware.client', name: "eventpipeline", version: '5.15.4.388'
// Use the following for streaming events to/from a Kafka cluster
compile group: 'com.scaleoutsoftware.client', name: "kafkaclient", version: '5.15.4.388'

Maven

For Maven, you can add the ScaleOut API Repository to your pom.xml by adding the following repository reference:

<repository>
    <id>ScaleOut API Repository</id>
    <url>https://repo.scaleoutsoftware.com/repository/external</url>
</repository>

The following JARs can then be added, depending on your needs and licenses:

ScaleOut StateServer Libraries

<dependencies>

    <!-- Use the following for the Java Named Cache -->
    <dependency>
      <groupId>com.scaleoutsoftware.client</groupId>
      <artifactId>jnc</artifactId>
      <version>5.15.4.388</version>
    </dependency>
    <!-- Use the following for the JSR107 definition backed by ScaleOut StateServer -->
    <dependency>
      <groupId>com.scaleoutsoftware.client</groupId>
      <artifactId>jrs107</artifactId>
      <version>1.2</version>
    </dependency>
    <!-- Use the following for Spring Sessions backed by ScaleOut StateServer  -->
    <dependency>
      <groupId>com.scaleoutsoftware.spring</groupId>
      <artifactId>session</artifactId>
      <version>1.1</version>
    </dependency>
</dependencies>

ScaleOut StreamServer Libraries

<dependencies>
    <!-- Use the following for streaming events with ScaleOut StreamServer  -->
    <dependency>
      <groupId>com.scaleoutsoftware.client</groupId>
      <artifactId>eventpipeline</artifactId>
      <version>5.15.4.388</version>
    </dependency>
    <!-- Use the following for streaming events to/from a Kafka cluster -->
    <dependency>
      <groupId>com.scaleoutsoftware.client</groupId>
      <artifactId>kafkaclient</artifactId>
      <version>5.15.4.388</version>
    </dependency>
</dependencies>