【问题标题】:WSO2 Governance Registry Endpoint Lookup Sample remote use caseWSO2 Governance Registry Endpoint Lookup 远程用例示例
【发布时间】:2013-06-23 11:35:10
【问题描述】:

治理注册表中有一个Endpoint Lookup Sample,其中axis2服务使用治理注册表查找另一个服务的端点地址。

我想将 axis2 服务示例部署到 WSO2 应用程序服务器,并且仍然使用相同的 WSO2 Governance 服务器来存储端点引用。请注意,治理注册表现在远离应用程序服务器。

问题:

1) 是否只需将示例 EndpointLookupServiceComponent 中的 RegistryService 替换为 RemoteRegistry?例如

public class EndpointLookupServiceComponent {

    private static RegistryService registryService;

    public EndpointLookupServiceComponent() {
        registryService = new RemoteRegistry(
             new URL("https://my-greg-server:9443/registry"), "admin", "admin");
    }
    ...
}

2) 以下值通常存储在应用程序服务器上的什么位置?

"https://my-greg-server:9443/registry"
"admin"
"admin"

是否可以将此类信息存储在位于服务归档 (aar) 文件外部的属性文件中?这种方法可以轻松更改不同环境(DEV、TEST、PRD 等)的值。此外,可以使用文件系统访问控制来保护属性文件,以限制谁可以查看该文件。

安全存储此类配置数据的标准 WSO2 方法是什么?

【问题讨论】:

    标签: wso2


    【解决方案1】:
    1. 是的,您需要使用 RemoteRegistry 实例来访问注册表。

    2. 执行此操作的一种方法是在 WSO2 应用程序服务器上使用 Registry。因此,您可以将凭据保存为注册表资源,并通过服务中的注册表 api 访问它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-18
      • 1970-01-01
      相关资源
      最近更新 更多