用于远程实例的WSO2 Registry XML配置

时间:2016-08-26 04:04:09

标签: wso2 wso2-am

对于一个基于JDBC的配置,URL是否有用?根据{{​​3}},远程实例的URL可以推导如下:

让目标服务器的网址为Remote Instance and Mount Configuration Details。然后,远程实例的URL将为https://localhost:9443/services。让目标服务器的URL为https://localhost:9443/registry。然后,远程实例的URL将为https://10.20.30.40:9445/webcontext/services

但在https://10.20.30.40:9445/webcontext/registry中,发布商的配置如下:

<remoteInstance url="https://publisher.apim-wso2.com"> 
   <id>gov</id>
   <cacheId>user@jdbc:mysql://regdb.mysql-wso2.com:3306/regdb</cacheId>
   <dbConfig>govregistry</dbConfig>
   <readOnly>false</readOnly>
   <enableCache>true</enableCache>
   <registryRoot>/</registryRoot>
</remoteInstance>

修改/ etc / hosts条目以将相关IP地址映射到remoteInstance URL。

  • 127.0.0.1 publisher.apim-wso2.com

为什么使用“APIM 2.0 deployment”,而不是“https://publisher.apim-wso2.com”?

BTW,cacheId在基于JDBC的配置中是否有用?如果是,cacheId名称规则是什么? JDBC URL?

1 个答案:

答案 0 :(得分:1)

在JDBC情况下不使用

remoteInstance url

cacheId是必需的。看到这个。

WSO2 API Manager - Setting 'CacheId' when clustering with SQL Server