This document is DEPRECATED.

Please consider any information here as out of date. DO NOT use this document.

Instead, refer to

Please update your bookmarks accordingly.

Skip to end of metadata
Go to start of metadata

A JBoss AS 5.x application can be configured to use Infinispan 4.x as the Hibernate 2nd-level cache, replacing JBoss Cache.

  1. Add the attached jar files to the ear lib directory. These include the core 4.1.0.GA Infinispan jar (infinispan-core.jar), the Hibernate/Infinispan integration jar back-ported from Hibernate 3.5 (hibernate-infinispan-3.3.2.GA_CP03.jar), the JGroups jar required by Infinispan 4.1.0 (jgroups-2.10.0.GA.jar), and other required 3rd party jars (river-1.2.3.GA.jar, marshalling-api-1.2.3.GA.jar)
  2. Isolate the classloading to be ear-scoped by adding META-INF/jboss-classloading.xml
  3. Configure persistence.xml to use Infinispan instead of JBoss Cache:
infinispan infinispan Delete
hibernate hibernate Delete
jbossas jbossas Delete
jboss_cache jboss_cache Delete
as5 as5 Delete
2lcache 2lcache Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.