My application started to use Jgroups long ago for cluster event synchronization.
Now we are introducing Spring @Cache annotation for distributed caching, and we chose Infinispan as our main cache provider.
I am in the process of learning Infinispan 7.1 configuration, and so far I got that Infinispan is mainly based over Jgroups, in fact it instantiates its own Jchannel based on configuration file.
I have concerns on possible clashes and redundancies if I allow multiple entities to configure their own Jgroups independently. I.e. my application features an implementation of a distributed status view of the cluster which displays basic hardware data. We had a hard time debugging duplicate and out-of-date nodes.
So, my brief question is: is it possible to tell Infinispan to run over a pre-existing instance (possibly instantiated by an existing Spring bean / singleton object) of Jgroups channel? I currently have a singleton object holding a reference to Jchannel.
My idea is that Infinispan will send messages over existing channel, and plus I will have the ability to implement code to monitor the channel in the future.
答案 0 :(得分:0)
作为@GalderZamarreño,我们提供Spring Boot Starters以及标准的Spring Cache扩展。您可以找到一个小教程here和文档here。对于Spring Boot,也可以在this tutorial。