因此,如果是动态端点,我们可以将其更新为此。 https://docs.wso2.com/display/ESB481/Sample+10%3A+Introduction+to+Dynamic+Endpoints+with+the+Registry 问题是我可以这样更新LocalEntry。但它对我不起作用。任何帮助都会有所帮助。
<definitions xmlns="http://ws.apache.org/ns/synapse"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ws.apache.org/ns/synapse http://synapse.apache.org /ns/2010/04/configuration/synapse_config.xsd">
<registry provider="org.wso2.carbon.mediation.registry.ESBRegistry">
<parameter name="root">file:./repository/samples/resources/</parameter>
<parameter name="cachableDuration">15000</parameter>
</registry>
<localEntry key="local-enrty-ep-key"
src="file:repository/samples/resources/endpoint/dynamic_endpt_1.xml"/>
<sequence name="main">
<in>
<send>
<endpoint key="local-enrty-ep-key"/>
</send>
</in>
<out>
<send/>
</out>
</sequence>
答案 0 :(得分:0)
最后我找到了答案:)
<registry provider="org.wso2.carbon.mediation.registry.ESBRegistry">
应该改为
<registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">