<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 :-)

cheers
asankha

--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com




Reply via email to