API 出版商和商店未显示 API

API Publisher and Store not displaying API

我的 wso2registry 指向配置了 h2 db 的 wso2carbon 数据源。其他数据库配置为 mysql。我得到的错误是 h2 db 上有一些锁并且我的 wso2 服务器没有启动。我将 wso2carbon 更改为指向 mysql regdb 端点。之后服务器启动。现在,之前在发布者控制台中创建的 api 不可见。 api 也没有出现在商店中,尽管商店说它列出了大约 18 个 api。如果我再次创建 apis,我会得到一个重复的错误。 我试图将 wso2carbon 数据源指向同一个 h2 数据库,但发布者和商店 apis 仍然没有出现。 有没有一种方法可以清理 apis,以便我可以使用配置有 mysql db

的 regdb 重新创建它们

要再次使用 H2 数据库查看您的 API,请重新索引注册表。

  1. 在 Store/Publisher 节点中更改 <APIM_HOME>/repository/conf/registry.xml 文件中的 <lastAccessTimeLocation> 元素。例如,将 /_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime 注册表路径更改为 /_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime_1.

  2. 重新启动服务器。几秒钟后,它应该重新索引 API。