igarashitm commented on code in PR #19142: URL: https://github.com/apache/camel/pull/19142#discussion_r2340303857
########## components/camel-xslt-saxon/src/main/java/org/apache/camel/component/xslt/saxon/SaxonXmlSourceHandlerFactoryImpl.java: ########## @@ -40,4 +81,51 @@ protected Source getSource(Exchange exchange, Object body) { } return source; } + + private Source convertJsonToXmlSource(String jsonString) { + try { + net.sf.saxon.s9api.XPathSelector selector = getSaxonJsonToXmlExecutable().load(); Review Comment: According to the Saxon Javadoc it's up to `XPathExecutable` being thread-safe, and `XPathSelector` is suggested to load every time (which makes sense as XPathSelector will holds compiled XPath expression, i.e. will hold JSON payload) https://www.saxonica.com/html/documentation12/javadoc/net/sf/saxon/s9api/XPathExecutable.html -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org