6

我有一个名为:的 LocalEntry Test,其内容如下并保存在本地文件系统中。

<test>
   <value1>a</value1>
</test>

我可以value1使用这样的属性来检索:

<property name="value" expression="get-property('Test')/*[local-name()='value1']/text()" type="string" scope="default" />

但是,我不能通过属性调解器或丰富调解器更改 LocalEntry 文件的内容,我的丰富配置如下:

<enrich>
    <source clone="true" xpath="$ctx:newValue"/>
    <target xpath="get-property('Test')/*[local-name()='value1']/text()"/>
</enrich>

我在 ESB-5.0.0 中有这个精确的配置,它就像一个魅力。

为什么我不能在 EI-6.6.0 中做同样的事情?有没有替代的解决方案?

4

1 回答 1

0

For saving and loading content, you can use registry. Using property mediator to read and write. There is some downside, that wso2 cache that is read for 15sec. When that is a problem, you cane use more "nasty" method using script mediator. I have described it much more with an example, along with this encountered problem here

</p>

于 2021-02-04T19:15:46.973 回答