与 WebSphere Service Registry and Repository 集成

要对 SOA 服务进行开发和协作,最佳做法是使用 IBM® WebSphere® Service Registry and Repository Advanced Lifecycle Edition。但是,也可使用 IBM Rational® Asset Manager 和较低版本的 IBM WebSphere Service Registry and Repository 对作为 SOA 服务的业务资产进行开发和协作。

Rational Asset Manager 中的资产发布到 WebSphere Service Registry and Repository

如果将 Rational Asset Manager 中的社区连接到 WebSphere Service Registry and Repository,那么可以将包含 Web Service 文档和其他业务对象的资产发布到 WebSphere Service Registry and Repository

如果为连接配置映射文件,那么可以将资产作为业务模型对象发布到 WebSphere Service Registry and Repository;否则,发布到 WebSphere Service Registry and Repository 的资产将作为 WebSphere Service Registry and Repository 中链接到 Rational Asset Manager 中资产的类属概念。

WebSphere Service Registry and Repository 中的对象同步到 Rational Asset Manager

您可以配置 WebSphere Service Registry and RepositoryRational Asset Manager 中社区之间的连接以按照调度的时间间隔进行同步。

同步 WebSphere Service Registry and RepositoryRational Asset Manager 中社区之间的连接时,Rational Asset Manager 将在社区中为 WebSphere Service Registry and Repository 中的服务描述对象创建远程资产。远程资产链接到单独存储库中的对象。将在 WebSphere Service Registry and Repository 中为以下服务描述对象创建远程资产:
  • 物理文档:
    • WSDL
    • XSD
    • WS-Policy
    • SCA 模块
    • XML 文件
    • 其他物理文档
  • 概念:
    • 具有工件关系的概念
    • 当配置与 WebSphere Service Registry and Repository 的连接时选择的其他概念类型

如果更改 WebSphere Service Registry and Repository 服务器,那么当下次连接同步时,这些更改将反映在 Rational Asset Manager 中的资产中。

WebSphere Service Registry and RepositoryRational Asset Manager 的集成在 V7.2 中得到改进

通过 Rational Asset Manager V7.2 和更高版本,您可将 Rational Asset ManagerWebSphere Service Registry and Repository 更加紧密地集成,从而获得以下增强:
管理两个存储库中特定对象的生命周期
Rational Asset Manager V7.2 中,可以为 WebSphere Service Registry and Repository 的连接配置映射文件。该映射文件定义了在更新 Rational Asset Manager 中的资产时将对 WebSphere Service Registry and Repository 中对象执行的操作。 某些操作可自动化;例如,如果使用缺省映射文件,那么在核准了业务解决方案时,将自动创建新“发行版”资产。先前,Rational Asset Manager 中资产的状态与 WebSphere Service Registry and Repository 中的对象是松散关联的。
面向服务的体系结构(SOA)模型库得以改善
Rational Asset Manager 随附的样本 SOA 模型库WebSphere Service Registry and Repository 中的信息模型相当。该库还包括一个标准映射文件,可供您在配置 WebSphere Service Registry and Repository 的连接时使用或修改。
SOA 模型库具有预配置的生命周期
激活 SOA 模型库后,可使用一个包含六个预配置生命周期的集合来帮助您设置和实施 SOA 信息模型的需求。
生命周期具有高级生命周期修订版(ALE)
Rational Asset Manager 包括一种策略,用于自动将特定资产类型发布到 WebSphere Service Registry and Repository,并强制实施为 WebSphere Service Registry and Repository 的连接而配置的映射文件。在预定义的 SOA 生命周期中,每次修改资产或将其移动到其他状态时均会运行 ALE 策略。该策略运行时,它将参考映射文件并对 WebSphere Service Registry and Repository 中的对象执行相应操作;例如,在 Rational Asset Manager 中创建“业务解决方案”类型的新资产时,ALE 策略将运行,并在 WebSphere Service Registry and Repository 中自动创建一个“业务能力”对象。

要配置连接而必须采取的操作

  1. 启用 SOA 模型库:有关更多信息,请参阅启用面向服务的体系结构 (SOA) 模型库
  2. 配置 WebSphere Service Registry and Repository 中的 ALEConfiguration:您在 WebSphere Service Registry and Repository 中的 ALEConfiguration 内指定用于访问这两个应用程序的 URL 和凭证。 通过与 Rational Asset Manager 中映射文件类似的方式,您可在 WebSphere Service Registry and Repository 中指定将推送并同步到 Rational Asset Manager 服务器的触发器和操作。 有关更多信息,请参阅 WebSphere Service Registry and Repository 信息中心中的WebSphere Service Registry and Repository 中安装 Advanced Lifecycle Edition
  3. 创建社区与 WebSphere Service Registry and Repository 之间的连接:执行此操作时,您可以选择并编辑 SOA 模型库 随附的映射文件或指定您自己的映射文件。 有关更多信息,请参阅连接到 WebSphere Service Registry and Repository
  4. 为社区配置 SOA 生命周期:有关更多信息,请参阅创建 SOA 生命周期集合。要定制生命周期,请参阅创建主生命周期

Rational Asset Manager 中资产映射到 WebSphere Service Registry and Repository 中对象的方式

如果使用 SOA 模型库随附的映射配置文件,那么下表显示的便是 Rational Asset Manager 中资产映射到 WebSphere Service Registry and Repository 中对象的方式:

表 1. Rational Asset Manager 中的资产和 WebSphere Service Registry and Repository 中的对象
Rational Asset Manager中的资产类型 WebSphere Service Registry and Repository 中的对象
业务解决方案 BusinessCapability 扩展 Asset
业务解决方案归类为 Software Development/Kind/Process BusinessProcess 扩展 BusinessCapability
业务解决方案归类为 Software Development/Kind/Web Application BusinessApplication 扩展 BusinessCapability
业务解决方案归类为 Software Development/Kind/Service BusinessService 扩展 BusinessCapability
发行版 CapabilityVersion 扩展 Asset
发行版归类为 Software Development/Kind/Process ProcessVersion 扩展 CapabilityVersion
发行版归类为 Software Development/Kind/Web Application ApplicationVersion 扩展 CapabilityVersion
发行版归类为 Software Development/Kind/Service ServiceVersion 扩展 CapabilityVersion
规范归类为 Software Development/Kind/Service/Interface ServiceInterfaceSpecification 扩展 Asset
规范归类为 Software Development/Kind/Schema SchemaSpecification 扩展 Asset
DoU DoU

有关可自动执行的过程的更多信息和示例,请参阅 WebSphere Service Registry and Repository 信息中心中有关同步的主题

Rational Asset Manager 中的 SOA 模型库

下图显示资产类型及其必需属性以及 SOA 模型库的资产类型之间的关系:

SOA 模型库的资产类型、属性和建议关系图


反馈