diff --git a/templates/cache-ispn.xml.j2 b/templates/cache-ispn.xml.j2
index a10a1a2..a3d9ddb 100644
--- a/templates/cache-ispn.xml.j2
+++ b/templates/cache-ispn.xml.j2
@@ -21,23 +21,6 @@
xsi:schemaLocation="urn:infinispan:config:11.0 http://www.infinispan.org/schemas/infinispan-config-11.0.xsd"
xmlns="urn:infinispan:config:11.0">
-
-
-
-
diff --git a/templates/keycloak.service.j2 b/templates/keycloak.service.j2
index dcc1fcf..6b118d6 100644
--- a/templates/keycloak.service.j2
+++ b/templates/keycloak.service.j2
@@ -16,6 +16,7 @@ Before=apache2.service
[Service]
Environment=JAVA={{ keycloak_openjdk_bin }}
Environment=JAVA_HOME=/usr/lib/jvm/java-{{ keycloak_openjdk_runtime_version}}-openjdk-amd64
+Environment=JAVA_OPTS_APPEND="-Djgroups.mcast_addr={{ keycloak_jgroups_multicast_address}} -Djgroups.mcast_port={{ keycloak_jgroups_multicast_port }}"
User={{ keycloak_user }}
Group={{ keycloak_user }}
SuccessExitStatus=0 143