Set a jgroups stack

102 views
Skip to first unread message

zakariae Lebriq

unread,
Apr 26, 2022, 10:01:03 AM4/26/22
to Keycloak User
Hello folk, 

It's been a while I'm working on infinispan in keycloak 18,
I have created my own ispn.xml and jgroups.xml.
I also injected my stack file into my ispn.xml

* BUT,  It's seems that my stack file doesn't override jgroups the default values such as the bind port 7800 and the bind address. 

Here's an example  of my conf : 

******* jgroups.xml *******

 <config xmlns="urn:org:jgroups"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups-4.2.xsd">

<TCP bind_port="123" bind_addr="127.0.0.1"/>


</config>

******* ispn.xml *******

<?xml version="1.0" encoding="UTF-8"?>
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:11.0 http://www.infinispan.org/schemas/infinispan-config-11.0.xsd"
xmlns="urn:infinispan:config:11.0">

<jgroups>
<stack-file name="prod-tcp" path="/home/keycloak/keycloak/conf/jgroups.xml"/>
</jgroups>

<cache-container name="keycloak" >
<transport lock-timeout="60000" cluster="${env.CLUSTER_NAME}" node-name="${env.NODE_NAME}" stack="prod-tcp" />
<local-cache name="realms"
>
........

Do you have any idea please ?  

Thanks guys
Reply all
Reply to author
Forward
0 new messages