Integrating Infinispan with CDI
Infinispan provides a module that integrates with CDI in the Java EE environment and can be used to inject Infinispan components, such as CacheManager and Cache into your CDI application and also provides (partial) support for JCache caching annotations.
An introduction to CDI
CDI is an important and foundational aspect of the Java EE 6 stack. To understand the importance of this specification and understand its programming model, we have to look back at early versions of Java EE and the introduction of the concept of Inversion of Control (IoC), where the container was always responsible for creating and managing the lifecycle of managed components.
Before Java EE 5, to enable an enterprise Java application to use ...
Get Infinispan Data Grid Platform Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.