【问题标题】:How can I configure WSO2 ESB like Gateway to publish from WSO2 API Manager?如何配置像网关一样的 WSO2 ESB 从 WSO2 API 管理器发布?
【发布时间】:2016-08-29 16:07:08
【问题描述】:

在 WSO2 API Manager 中,我想在本地使用 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 我可以看到它。

【问题讨论】:

    标签: wso2 wso2esb wso2-am


    【解决方案1】:

    您是否在 ESB 上完成了功能安装?

    默认情况下,WSO2 ESB 不包含在此场景中充当网关所需的某些功能。如果不安装功能部件,则无法在此处使用 ESB。

    因此我们建议您使用 WSO2 API Manager 本身的实例作为网关。

    网关的HTTPS servlet transport port 需要作为网关的&lt;serverURL&gt; 给出。

    【讨论】:

    • 不,我没有。默认情况下,ESB 是一个功能安装。我的 不正确?我也厌倦了 9443(ESB 端口),但我根本无法发布。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多