JBoss Community Archive (Read Only)

Infinispan 6.0

Can I run my own Infinispan cache within JBoss Application Server 5 or 4?

Yes, you can, but since Infinispan uses different JGroups jar libraries to the ones shipped by these application servers, you need to make sure that the code using Infinispan, and the Infinispan libraries, are deployed in an isolated WAR/EAR. Information on how to isolate deployments can be found in:

Apart from isolating your deployment, you can use Maven's Shade plugin to build Infinispan and all its dependencies in a single jar, and then shade the library that might clash with the one in the app server. For example, to shade org.jgroups, you'd build Infinispan with:

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 09:41:26 UTC, last content change 2011-07-18 18:23:17 UTC.