synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] Commented: (SYNAPSE-235) Allow XPath expressions to be specified relative to envelope or body via an attribute
Date Wed, 12 Mar 2008 22:56:46 GMT


Andreas Veithen commented on SYNAPSE-235:

I think we also have a concurrency issue in the SynapseXPath implementation. It seems that
Jaxen's XPath objects are thread safe, but obviously if we call setFunctionContext or setVariableContext
on each invocation of the evaluate method, this is no longer the case! There is an interesting
discussion around that topic here:

I added a ThreadSafeDelegatingVariableContext in SVN to solve this issue. The idea is to call
setVariableContext with an instance of this class in the constructor of SynapseXPath and then
to call ThreadSafeDelegatingVariableContext#setDelegate in the evaluate method. We should
also use the same pattern with function contexts. This should make SynapseXPath thread safe
again. We could then also remove the synchronization from the getStringValue method.

> Allow XPath expressions to be specified relative to envelope or body via an attribute
> -------------------------------------------------------------------------------------
>                 Key: SYNAPSE-235
>                 URL:
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: Asankha C. Perera
>            Assignee: Ruwan Linton
>             Fix For: 1.2
> This would make XPath expressions simpler without consideration for SOAP 1.1 or 1.2 or
REST etc
> Default could be envelope (i.e. what we have now - for backward compatibility), and an
optional attribute could specify if it should be relative to the body

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message