<div dir="ltr"><div><div><div><div>As Tristan said, the infinispan bits shipped with WildFly and its configuration will not have all ISPN features. It might change over the time as there is no test which ensure that any feature beside those which are used from the WF container.<br></div>The configuration for the subsystem is different and will not allow all features.<br></div><div>Also if there is a plan to move to the supported products this is not supported!<br></div><div><br></div>The best option is to use the infinispan modules and configure it in server-mode, in this case the cache lifecycle is bound to the WF instance and can be shared/injected to all deployed applications (sharing the cache between application in embedded mode will not work)<br></div>Note that you might use the infinispan endpoints here, but if there is a plan to use the products the use of endpoints is not supported (as it will make WF a hybrid server for both)<br><br></div>Wolf<br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 5, 2018 at 12:17 PM Tristan Tarrant &lt;<a href="mailto:ttarrant@redhat.com">ttarrant@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 12/5/18 9:44 AM, Gunnar Morling wrote:<br>
&gt; Hey,<br>
&gt; <br>
&gt; I was trying to configure and inject an Infinispan cache through CDI,<br>
&gt; running on WildFly 14, using the Infinispan modules provided by the<br>
&gt; server.<br>
&gt; <br>
&gt; While I&#39;m not sure whether that&#39;s something supported or recommended,<br>
&gt; I found this preferable over adding Infinispan another time as part of<br>
&gt; the deployment. I couldn&#39;t find any recent info on doing this (would<br>
&gt; love any pointers, though), so here&#39;s my findings, in case it&#39;s<br>
&gt; interesting for others:<br>
<br>
You should not be using the Infinispan subsystem that comes with WildFly <br>
as its configuration capabilities are a bit limited, but the modules we <br>
supply:<br>
<br>
<a href="http://infinispan.org/docs/stable/user_guide/user_guide.html#infinispan_modules_for_wildfly_eap" rel="noreferrer" target="_blank">http://infinispan.org/docs/stable/user_guide/user_guide.html#infinispan_modules_for_wildfly_eap</a><br>
<br>
&gt; Btw. I also couldn&#39;t find an example for configuring a cache through<br>
&gt; jboss-cli.sh, perhaps that&#39;s something to consider, too?<br>
<br>
Yes, that should be added.<br>
<br>
Tristan<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
</blockquote></div>