2012-12-11 35 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/*,並且在更改之後資源不會被覆蓋。 –