Skip to content

Commit

Permalink
[resolves #2792][ENTESB-10400] Thread contention in Xalan's
Browse files Browse the repository at this point in the history
XPath.evaluate()
  • Loading branch information
ppalaga committed Apr 11, 2019
1 parent 82a0b21 commit fb1c6e4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,12 @@ private static void updateSystemProperties(ConfigContext context, boolean enable
if (enable) {
addProperty(element, propertiesByName, "hawtio.authenticationEnabled", "true");
addProperty(element, propertiesByName, "hawtio.realm", "hawtio-domain");
addProperty(element, propertiesByName, "org.apache.xml.dtm.DTMManager", "org.apache.xml.dtm.ref.DTMManagerDefault");
} else {
removeProperty(propertiesByName, "hawtio.authenticationEnabled");
removeProperty(propertiesByName, "hawtio.realm");
/* Do not remove org.apache.xml.dtm.DTMManager because we do not know whether it was added by us or by the
* user. Leaving it there should be harmless or even beneficial for the perf of XPath.evaluate() */
}
}

Expand Down

0 comments on commit fb1c6e4

Please sign in to comment.