Skip to content

Commit 060a193

Browse files
committed
KEYCLOAK-1732 Fix standalone.xml in demo distribution
1 parent 06ee06a commit 060a193

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

distribution/demo-dist/src/main/xslt/standalone.xsl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
exclude-result-prefixes="xalan j ds k sec">
99

1010
<xsl:param name="config"/>
11+
<xsl:variable name="inf" select="'urn:jboss:domain:infinispan:'"/>
1112

1213
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" xalan:indent-amount="4" standalone="no"/>
1314
<xsl:strip-space elements="*"/>
@@ -61,6 +62,18 @@
6162
</xsl:copy>
6263
</xsl:template>
6364

65+
<xsl:template match="//*[local-name()='subsystem' and starts-with(namespace-uri(), $inf)]">
66+
<xsl:copy>
67+
<cache-container name="keycloak" jndi-name="infinispan/Keycloak">
68+
<local-cache name="realms"/>
69+
<local-cache name="users"/>
70+
<local-cache name="sessions"/>
71+
<local-cache name="loginFailures"/>
72+
</cache-container>
73+
<xsl:apply-templates select="node()|@*"/>
74+
</xsl:copy>
75+
</xsl:template>
76+
6477
<xsl:template match="@*|node()">
6578
<xsl:copy>
6679
<xsl:apply-templates select="@*|node()" />

0 commit comments

Comments
 (0)