2012-12-11 39 views
0

我拥有当前安装的WSO2 ESB和WSO2注册表(均为4.5.0)。WSO2 ESB在启动时重写WSO2注册表值

注册表共享通过步骤instruction

恰好由通过步骤然后,用例是:

1)含拉链WSDL /架构添加到治理注册表。加入他们,我看到的情况下在注册表鲍泽:

_system/governance/trunk 
         /endpoints 
         /schemas 
         /services 
         /wsdls 

与所有WSDL /模式/端点/服务relevand到刚添加的WSDL包。

2)启动WSO2 ESB i将下面的注册表配置:

<dbConfig name="wso2registry_mounted"> 
    <dataSource>jdbc/WSO2CarbonDB_GREG</dataSource> 
</dbConfig> 

<remoteInstance url="https:localhost:9445/registry"> 
    <id>wso2_registry_mounted</id> 
    <dbConfig>wso2registry_mounted</dbConfig> 
    <readOnly>false</readOnly> 
    <enableCache>true</enableCache> 
    <registryRoot>/</registryRoot> 
</remoteInstance> 

<mount overwrite="true" path="/_system/config"> 
    <instanceId>wso2_registry_mounted</instanceId> 
    <targetPath>/_system/nodes</targetPath> 
</mount> 

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

3)检查注册表中的浏览器上都ESB和治理注册。至少架构文件夹内容已被ESB覆盖。

任何人都可以建议如何强制ESB不要覆盖初始注册表项。将挂载的注册表标记为readOnly = true - 没有帮助。

谢谢, 弗拉基米尔。

回答

0

请使用<mount overwrite="false"不被改写,内容

请参阅本document了解更多详情

+0

谢谢,这有助于解决问题的75%。我意识到,搞砸安装方向。另外我建议默认的注册表文件夹需要设置为/ trynk/*以外的东西,因为它会被覆盖。所以我将其更改为/ repository/*,并且在更改之后资源不会被覆盖。 –