On Mon, Mar 30, 2009 at 7:04 AM, Asankha C. Perera <[email protected]>wrote:

>
>  <enrich name="string" expression="xpath" action=["insertBefore" |
>>> "insertAfter" | "replace"]/>
>>>
>>> The name attribute is the property name to be extracted, and the
>>> expression
>>> is the xpath describing the attach node specified by the attaching action
>>> which can be one of the above three options. I suggest we always clone
>>> the
>>> node before enriching the message with that property node.
>>>
>>> WDYT?
>>>
>>>
>>
>> I can agree with clone by default, but not with always clone. One use
>> case of these mediators is to store part of a message, invoke some
>> other service and then retrieve the stored element to use it in a
>> subsequent request or in the response. In this case cloning the node
>> causes unnecessary overhead. Of course if we don't clone, we should
>> clear the property.
>>
>> PS: We should also have "addChild" as a possible action.
>>
>>
> Ok.. I agree with this too :-)


+1

Ruwan


>
>
> cheers
> asankha
>
> --
> Asankha C. Perera
> AdroitLogic, http://adroitlogic.org
>
> http://esbmagic.blogspot.com
>
>
>
>
>


-- 
Ruwan Linton
Senior Software Engineer & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: [email protected]; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

Reply via email to