[infinispan-dev] Obtaining cache via CDI on WildFly

Tristan Tarrant ttarrant at redhat.com
Wed Dec 5 06:08:37 EST 2018


On 12/5/18 9:44 AM, Gunnar Morling wrote:
> Hey,
> 
> I was trying to configure and inject an Infinispan cache through CDI,
> running on WildFly 14, using the Infinispan modules provided by the
> server.
> 
> While I'm not sure whether that's something supported or recommended,
> I found this preferable over adding Infinispan another time as part of
> the deployment. I couldn't find any recent info on doing this (would
> love any pointers, though), so here's my findings, in case it's
> interesting for others:

You should not be using the Infinispan subsystem that comes with WildFly 
as its configuration capabilities are a bit limited, but the modules we 
supply:

http://infinispan.org/docs/stable/user_guide/user_guide.html#infinispan_modules_for_wildfly_eap

> Btw. I also couldn't find an example for configuring a cache through
> jboss-cli.sh, perhaps that's something to consider, too?

Yes, that should be added.

Tristan


More information about the infinispan-dev mailing list