Skip to content

Instantly share code, notes, and snippets.

@milenkovicm
Created May 17, 2012 10:48
Show Gist options
  • Save milenkovicm/2718091 to your computer and use it in GitHub Desktop.
Save milenkovicm/2718091 to your computer and use it in GitHub Desktop.
how to register infinispan CDI interceptor
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
<!-- Enable JCACHE interceptors -->
<interceptors>
<class>org.infinispan.cdi.interceptor.CacheResultInterceptor</class>
<class>org.infinispan.cdi.interceptor.CacheRemoveEntryInterceptor</class>
<class>org.infinispan.cdi.interceptor.CacheRemoveAllInterceptor</class>
</interceptors>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment