このコンテンツは選択した言語では利用できません。

Chapter 14. Integration with the Spring Framework


JBoss Data Grid allows users to define a Spring Cache provider, providing applications a method of easily adding caching support, and allowing users familiar with Spring's programming model a way to have caching fulfilled by JBoss Data Grid.

Note

JSR-107 (JCache) annotations are only supported in Spring 4.

Important

Spring 3 has been deprecated in JBoss Data Grid 6.6.0, and is expected to be removed in subsequent versions.

14.1. Defining the Spring Maven Dependency

The Spring module is bundled separately from the Library and Remote Client-Server dependencies. The following Maven configuration should be used, corresponding with the version of Spring in use.
Spring 4

Example 14.1. pom.xml for Spring 4 in Library Mode

<dependency>
    <groupId>org.infinispan</groupId>
    <artifactId>infinispan-spring4-embedded</artifactId>
    <version>${infinispan.version}</version>
</dependency>

Example 14.2. pom.xml for Spring 4 in Remote Client-Server Mode

<dependency>
    <groupId>org.infinispan</groupId>
    <artifactId>infinispan-spring4-remote</artifactId>
    <version>${infinispan.version}</version>
</dependency>
Spring 3

Example 14.3. pom.xml for Spring 3 (for both Library and Remote Client-Server Mode)

<dependency>
    <groupId>org.infinispan</groupId>
    <artifactId>infinispan-spring3</artifactId>
    <version>${infinispan.version}</version>
</dependency>

Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

© 2024 Red Hat, Inc.