Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 24. The Infinispan CDI Module
infinispan-cdi module. The infinispan-cdi module offers:
	- Configuration and injection using the Cache API.
 - A bridge between the cache listeners and the CDI event system.
 - Partial support for the JCACHE caching annotations.
 
24.1. Using Infinispan CDI Copier lienLien copié sur presse-papiers!
24.1.1. Infinispan CDI Prerequisites Copier lienLien copié sur presse-papiers!
- Ensure that the most recent version of the infinispan-cdi module is used.
 - Ensure that the correct dependency information is set.
 
24.1.2. Set the CDI Maven Dependency Copier lienLien copié sur presse-papiers!
			In Library mode the infinispan-embedded artifact contains the CDI module, and should be added as a dependency as seen in the below example: 
<dependency>
    <groupId>org.infinispan</groupId>
    <artifactId>infinispan-embedded</artifactId>
    <version>${infinispan.version}</version>
</dependency>
<dependency>
    <groupId>org.infinispan</groupId>
    <artifactId>infinispan-embedded</artifactId>
    <version>${infinispan.version}</version>
</dependency>
			In Remote Client-Server mode the infinispan-remote artifact contains the CDI module, and should be added as a dependency as seen in the below example: 
<dependency>
    <groupId>org.infinispan</groupId>
    <artifactId>infinispan-remote</artifactId>
    <version>${infinispan.version}</version>
</dependency>
<dependency>
    <groupId>org.infinispan</groupId>
    <artifactId>infinispan-remote</artifactId>
    <version>${infinispan.version}</version>
</dependency>