WSO2 Registry XML 远程实例的配置

WSO2 Registry XML Configuration for remote instance

对于一个基于 JDBC 的配置,URL 有用吗?根据Remote Instance and Mount Configuration Details,可以推导出远程实例的URL如下:

让目标服务器的 URL 为 https://localhost:9443/services. Then the URL of the remote instance will be https://localhost:9443/registry. Let the URL of the destination server be https://10.20.30.40:9445/webcontext/services. Then the URL of the remote instance will be https://10.20.30.40:9445/webcontext/registry

但在APIM 2.0 deployment中,发布者的配置如下:

<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 URLs。

为什么使用“https://publisher.apim-wso2.com" , but not "https://localhost:9445”?

顺便说一句,cacheId 在基于 JDBC 的配置中有用吗?如果是,cacheId 名称规则是什么? JDBC URL?

remoteInstance url 不用于 JDBC 情况。

cacheId 是必需的。看到这个。