【问题标题】:Resources in WSO2 ESB are not updated when changedWSO2 ESB 中的资源在更改时不会更新
【发布时间】:2016-04-20 23:15:12
【问题描述】:

我有这个问题:当我使用 WSO2 G-REG 将资源从一个集合移动到共享注册表中的另一个集合时,资源被移动,但是当我在 WSO2 ESB 管理控制台中打开相同的注册表窗口时,资源位于旧收藏。为什么没有改?

此行为是否有任何设置?等等,也许在registry.xml中?

【问题讨论】:

  • 您确定您已正确配置注册表吗?

标签: wso2 wso2esb wso2greg


【解决方案1】:

实际上你需要在 wso2 esb 的 registry.xml 文件中添加正确的映射配置[1]。

[1]

<mount path="/_system/governance" overwrite="true">
        <instanceId>reggov</instanceId>
        <targetPath>/_system/governance</targetPath>
</mount>

请记住,如果您将治理映射为配置[1],则集合的其余部分位于目标路径下(/_system/governance)将不会出现。 例如:以下映射[2] 对映射[1] 没有意义。

[2]

<mount path="/_system/governance/abc" overwrite="true">
        <instanceId>reggov</instanceId>
        <targetPath>/_system/governance/xyz</targetPath>
</mount>

问题的真正原因可能是 ESB 的注册表缓存时间。 根据当前的实现,部署到 GREG 的工件需要大约 15 分钟才能同步到 ESB 节点。原因应该是默认的可缓存时间设置为15分钟。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-22
    • 1970-01-01
    • 2015-04-14
    • 1970-01-01
    相关资源
    最近更新 更多