<div dir="ltr"><span style="font-size:12.8px">Hi all,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am blocked to deploy a test app that use a distributed infinispan (8.0.1) cache within 2 wildfly (10.0.0) domain nodes and a cache entry producer deployed as clustered singleton service.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Your feedback/advise are really appreciated!</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Cache definition:</div><div style="font-size:12.8px"><div><br></div><div> <cache-container name="my-cache-container"></div><div> <transport lock-timeout="60000"/></div><div> <distributed-cache name="myAppCache" mode="SYNC"></div><div> <transaction mode="NONE"/></div><div> <eviction strategy="NONE"/></div><div> </distributed-cache></div><div> </cache-container></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Sample code:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div> @Resource(lookup = "java:jboss/infinispan/container/my-cache-container")</div><div> private EmbeddedCacheManager cacheContainer;</div><div><br></div><div> private Cache<Long, Long> myAppCache;</div><div><br></div><div> @PostConstruct</div><div> public void startNotClustered() throws NamingException {</div><div> this.myAppCache = this.cacheContainer.getCache("myAppCache");</div><div> ...</div><div> }</div><div><br></div><div> ...</div><div><br></div><div> @Schedule(hour = "*", minute = "*", second = "*")</div><div> public void consume() {</div><div> <a href="http://logger.info/" target="_blank">logger.info</a>("Cache size on node {} = {}",</div><div> System.getProperty("<a href="http://jboss.node.name/" target="_blank">jboss.node.name</a>"), myAppCache.size());</div><div> }</div><div><div dir="ltr"><div><br></div><div><br></div><div>Server one sample logs:</div><div><div>2016-01-31 14:52:03,789 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 1) Produce new cache entry 1454241123789 on node master:server-one</div><div>2016-01-31 14:52:04,005 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 2) Cache size on node master:server-one = 35</div><div>2016-01-31 14:52:04,796 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 3) Produce new cache entry 1454241124796 on node master:server-one</div><div>2016-01-31 14:52:05,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 4) Cache size on node master:server-one = 36</div><div>2016-01-31 14:52:05,801 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 5) Produce new cache entry 1454241125801 on node master:server-one</div><div>2016-01-31 14:52:06,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 6) Cache size on node master:server-one = 37</div><div>2016-01-31 14:52:06,807 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 7) Produce new cache entry 1454241126807 on node master:server-one</div><div>2016-01-31 14:52:07,005 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 8) Cache size on node master:server-one = 38</div><div>2016-01-31 14:52:07,813 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 9) Produce new cache entry 1454241127813 on node master:server-one</div><div>2016-01-31 14:52:08,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 10) Cache size on node master:server-one = 39</div><div>2016-01-31 14:52:08,817 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 1) Produce new cache entry 1454241128817 on node master:server-one</div><div>2016-01-31 14:52:09,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 2) <b>Cache size on node master:server-one = 40</b></div></div><div><br></div><div>Server two logs:</div><div><div>2016-01-31 14:51:56,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 4) Cache size on node master:server-two = 0</div><div>2016-01-31 14:51:57,008 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 5) Cache size on node master:server-two = 0</div><div>2016-01-31 14:51:58,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 6) Cache size on node master:server-two = 0</div><div>2016-01-31 14:51:59,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 7) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:00,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 8) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:01,008 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 9) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:02,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 10) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:03,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 1) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:04,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 2) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:05,008 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 3) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:06,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 4) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:07,006 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 5) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:08,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 6) Cache size on node master:server-two = 0</div><div>2016-01-31 14:52:09,007 INFO [org.hypik.test.jboss.eap7.server.TestService] (EJB default - 7) <b>Cache size on node master:server-two = 0</b></div></div><div><br></div><div><br></div><div>I have attached all necessary info to investigate, but I am not sure attachement is allowed, so you can see source and logs here:</div><div><a href="https://www.dropbox.com/s/l1uhmfg5tkjkikw/infinispan-issue-wildfly-10.0.0.zip?dl=0" target="_blank">https://www.dropbox.com/s/l1uhmfg5tkjkikw/infinispan-issue-wildfly-10.0.0.zip?dl=0</a></div></div></div></div><div><div class="gmail_signature"><div dir="ltr"><div><br></div><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">С уважением / </span>Cordialement / Best regards,<div><br><div><b>Pierrick </b><font color="#0b5394"><b>HYMBERT</b></font></div><div><font color="#999999" size="1"><i></i></font></div></div></div></div></div>
</div>