From fb1c6e4a7d6efba22a541ba7ab533a30f704e6fa Mon Sep 17 00:00:00 2001 From: Peter Palaga Date: Thu, 11 Apr 2019 11:14:42 +0200 Subject: [PATCH] [resolves #2792][ENTESB-10400] Thread contention in Xalan's XPath.evaluate() --- .../extension/camel/config/WildFlyCamelConfigPlugin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/src/main/java/org/wildfly/extension/camel/config/WildFlyCamelConfigPlugin.java b/config/src/main/java/org/wildfly/extension/camel/config/WildFlyCamelConfigPlugin.java index 2afba05838..f597c81266 100644 --- a/config/src/main/java/org/wildfly/extension/camel/config/WildFlyCamelConfigPlugin.java +++ b/config/src/main/java/org/wildfly/extension/camel/config/WildFlyCamelConfigPlugin.java @@ -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() */ } }