[ 
https://issues.apache.org/jira/browse/CAMEL-4759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174813#comment-13174813
 ] 

Babak Vahdat commented on CAMEL-4759:
-------------------------------------

Hi Raul,

Until IBM JDK-5 they used to have only [1] as the only XPathFactory Impl and 
IBM JDK-6 (which is our concern)
provides both [1] & [2]. However [1] still seems to be the default.

As you've already mentioned the generic ServiceLoader mechanism (of Mark 
Reinhold) is (unfortunately) not used here as well and the IBM JDK goes through 
some proprietary steps similiar to below to load the defaults:

- first use the factory using the set system properties
- then through a jaxp.properties (inside JRE) with entries pointing what the 
default Impl is to be used for JAXP, Transformation, Validation APIs etc.
- if still not found go for some hard-coded defaults

Just as an extra note: Using [2] I used to have some memory-leak issues but had 
nothing to do with Camel
And just as the last note: I LOVE the glasses you wear as they're simply cool 
:-)

[1] org.apache.xpath.jaxp.XPathFactoryImpl
[2] com.ibm.xtq.xpath.jaxp.XPathFactoryImpl

                
> Balance up xpath XML element with Java DSL equivalent
> -----------------------------------------------------
>
>                 Key: CAMEL-4759
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4759
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-core, camel-saxon
>    Affects Versions: 2.8.4, 2.9.0
>            Reporter: Raul Kripalani
>         Attachments: xpathBalancingAndNamespaceLogging.diff
>
>
> The <xpath> XML element in Spring DSL doesn't allow to set the following 
> options which are available on Java DSL:
> * factory
> * object model
> * shortcut to use Saxon
> These options should be implemented as attributes on the xpath XML element, 
> e.g.:
> {code}
> <xpath factory="net.sf.saxon.xpath.XPathFactoryImpl">...</xpath>
> {code}
> {code}
> <xpath objectModel="http://saxon.sf.net/jaxp/xpath/om";>...</xpath>
> {code}
> (this one somehow feels ugly, is the objectModel supposed to be a namespace?)
> {code}
> <xpath saxon="true">...</xpath>
> {code}
> Only one should be allowed at a time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to