Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 660CDC851 for ; Sun, 14 Jul 2013 08:20:53 +0000 (UTC) Received: (qmail 69567 invoked by uid 500); 14 Jul 2013 08:20:52 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 69524 invoked by uid 500); 14 Jul 2013 08:20:51 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 69507 invoked by uid 99); 14 Jul 2013 08:20:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jul 2013 08:20:49 +0000 Date: Sun, 14 Jul 2013 08:20:49 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-6548) XQueryBuilder will override any saxon Configuration provided MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-6548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13707985#comment-13707985 ] Claus Ibsen commented on CAMEL-6548: ------------------------------------ Willem I am working on this, there is some changes needed on trunk the patch doesn't work with. > XQueryBuilder will override any saxon Configuration provided > ------------------------------------------------------------ > > Key: CAMEL-6548 > URL: https://issues.apache.org/jira/browse/CAMEL-6548 > Project: Camel > Issue Type: Bug > Components: camel-saxon > Affects Versions: 2.11.2 > Reporter: Niels Bertram > Assignee: Willem Jiang > Priority: Minor > > Sometimes one wants to register a custom extension function {{net.sf.saxon.lib.ExtensionFunctionDefinition}} in the saxon xquery engine context. > When providing {{XQueryBuilder.setConfiguration(Configuration configuration)}} with such configuration, the method will set the context and also set the initialise flag to false (line 378). This will cause {{XQueryBuilder.initialize(Exchange exchange)}} to run next time the builder is used. > Unfortunately the initialize method on line 639 it will create a new saxon Configuration regardless of what was set in the {{XQueryBuilder.setConfiguration()}} and renders this function pretty much useless. > The obvious solution to this problem is to check if the configuration is null before creating a new saxon configuration. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira