Este conteúdo não está disponível no idioma selecionado.
Chapter 13. 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.
13.1. Using Infinispan CDI Copiar o linkLink copiado para a área de transferência!
13.1.1. Infinispan CDI Prerequisites Copiar o linkLink copiado para a área de transferência!
- Ensure that the most recent version of the infinispan-cdi module is used.
- Ensure that the correct dependency information is set.
13.1.2. Set the CDI Maven Dependency Copiar o linkLink copiado para a área de transferência!
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>