[英]How can I configure WSO2 ESB like Gateway to publish from WSO2 API Manager?
在WSO2 API管理器中,我想在本地使用WSO2 ESB實例來發布API。 我的意思是,我在/repository/conf/api-manager.xml中配置了一個類似Gateway的ESB實例,如下所示:
<APIGateway>
<Environments>
<Environment type="hybrid" api-console="true">
<Name>Production and Sandbox</Name>
<Description> Description of environment</Description>
<!--ServerURL>https://${carbon.local.ip}:${mgt.transport.https.port}${carbon.context}/services/</ServerURL-->
<ServerURL>https://localhost:8243/services/</ServerURL>
<!--Username>${admin.username}</Username-->
<Username>admin</Username>
<!--Password>${admin.password}</Password-->
<Password>admin</Password>
<!--GatewayEndpoint>http://${carbon.local.ip}:${http.nio.port},https://${carbon.local.ip}:${https.nio.port}</GatewayEndpoint-->
<GatewayEndpoint>http://localhost:8280,https://localhost:8243</GatewayEndpoint>
</Environment>
</Environments>
<EnableGatewayKeyCache>true</EnableGatewayKeyCache>
<EnableGatewayResourceCache>true</EnableGatewayResourceCache>
<ClientDomainHeader>referer</ClientDomainHeader>
</APIGateway>
我遵循了這篇文章https://docs.wso2.com/display/AM190/Publish+through+Multiple+API+Gateways ,我只是根據我的ESB實例更改了配置。
問題出在API發布器中,當我想發布新的API時,出現以下錯誤:
Failed to change the life cycle status : Invoking lifecycle action "Publish" failed
注意:我將serviceURL的端口從9443更改為8243,因為我無法在瀏覽器中顯示ESB的服務列表,並且使用8243可以看到它。
您是否已在ESB上完成功能安裝?
默認情況下,WSO2 ESB不包含某些功能,以使其在這種情況下充當網關。 如果未安裝功能部件,則無法在此處使用ESB。
因此,我們建議您使用WSO2 API Manager本身的實例作為網關。
網關的HTTPS servlet transport port
需要作為網關的<serverURL>
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.