使用 Web Service QoS 配置 V7.0 WS-Notification 服务

使用管理控制台通过对 V7.0 WS-Notification 服务应用策略集来配置可靠性或安全性之类的 Web Service 服务质量 (QoS)。 WS-Notification 的策略集的配置可分为两种类型:服务提供程序(对于 V7.0 WS-Notification 服务点)和服务客户机(对于 V7.0 WS-Notification 服务客户机)。 WS-Notification 服务的这两个元素的策略集配置以不同方式处理。

准备工作

此任务假定您已 创建版本 7.0 WS-Notification 服务 还必须配置符合服务质量要求的策略集。 您可以复用组织中的现有策略集,使用 WebSphere® Application Server 提供的缺省策略集或创建新的策略集。 有关更多信息,请参阅 使用管理控制台管理策略集

有关此任务

V 7.0 WS-Notification 服务点 (NotificationBrokersPublisherRegistrationManagersSubscriptionManagers) 作为 JAX-WS 应用程序实现,这些应用程序部署到服务器或集群,并且通过使用服务提供者 ( 控制台页面wsadmin 命令) 的策略集管理基础结构来配置这些 WS-Notification 服务点的策略集管理。 在 WS-Notification 服务提供者的 服务提供者设置 中,有一个指向关联 WS-Notification 服务点应用程序的链接。 您可以使用服务提供者设置页面将策略集连接到每个 NotificationBrokerPublisherRegistrationManagerSubscriptionManager

V 7.0 WS-Notification 服务 作为每个 WS-Notification 服务的两个可配置服务客户机 (OutboundNotificationServiceOutboundRemotePublisherService) 实现。 需要出局 Web Service 调用的事件发生在服务集成总线级别(而不是总线成员级别),即使这些事件的通知发生在特定总线成员中。 因此,WS-Notification 服务实现的两个服务客户机是通过使用服务客户机的策略集管理基础结构配置的。 在 " 服务客户机策略集和绑定集合 " 页面中,给定 WS-Notification 服务的两个服务客户机及其端点和操作以树结构列出。 您可以使用此页面将策略集连接到每个服务客户机,或者连接到 WS-Notification 服务的两个服务客户机。

过程

  1. 启动管理控制台。
  2. 浏览至 服务集成 -> WS-Notification -> 服务服务集成 -> Buses -> bus_name -> [服务] WS-Notification 服务
  3. 在内容窗格中,单击要对其应用 Web Service 服务质量的 V7.0 WS-Notification 服务的名称。
    此 V 7.0 WS-Notification 服务的当前设置显示在 WS-Notification 服务设置中。
  4. 可选: 要为入站请求配置 Web Service QoS ,请将策略集应用于与服务点关联的服务提供者应用程序 (NotificationBroker, PublisherRegistrationManager 和 SubscriptionManager):

    单击 [其他属性] WS-Notification 服务点。 将显示 WS-Notification 服务点集合 。 此表单显示为此 V7.0 WS-Notification 服务配置的所有服务点。

    根据需要重复下列步骤,以便为一个或多个服务点的一个或多个服务提供程序应用程序配置策略集和绑定信息:

    1. 在内容窗格中,单击列表中 V7.0 WS-Notification 服务点的名称。
      此版本 7.0 WS-Notification 服务点的当前设置显示在 WS-Notification 服务点设置中。
    2. 单击 [其他属性] 策略集配置
      服务提供者集合中显示了指向此服务点的每个服务提供者应用程序 (NotificationBroker, PublisherRegistrationManager 和 SubscriptionManager) 的链接。
    3. 单击其中一个应用程序的名称。
      此服务的端点和操作的缩进列表显示在 服务提供者设置中。
    4. 在列表中选择一项或多项(服务、端点或操作),然后对所选项执行三个可用操作的其中一个:
      • 连接策略集
      • 拆离策略集
      • 指定绑定
    5. 重新启动服务提供程序应用程序。
  5. 可选: 要为出站请求配置 Web Service QoS ,请将策略集应用于与 WS-Notification 服务关联的一个或两个 Web Service 客户机:
    1. 如果需要,请浏览回此版本 7.0 WS-Notification 服务的 WS-Notification 服务设置 面板。
    2. 单击 [其他属性] 出站请求策略集和绑定
      此 WS-Notification 服务的两个服务客户机及其端点和操作列示在 服务客户机策略集和绑定集合中的树结构中。
    3. 选择服务客户机中的一个或全部,然后对所选项执行三个可用操作的其中一个:
      • 连接客户机策略集
      • 拆离客户机策略集
      • 指定绑定
      对于 WS-Notification 服务客户机,不支持在端点(端口)或操作级别进行策略集连接。 因此,端点或操作不可选择,并且显示为继承连接到服务客户机的任何策略集或绑定。
      注: 通过使用 服务客户机策略集和绑定集合,可以为所选服务的两个服务客户机配置策略集和绑定信息。 或者,您可以通过单击 服务 -> 服务客户机 -> ws-notification_service_client_name 并使用 WS-Notification 服务客户机设置 面板来配置单个版本 7.0 WS-Notification 服务客户机的策略集和绑定信息。 此面板还提供与关联服务集成总线和 WS-Notification 服务的链接。

结果

已对 WS-Notification 服务成功启用必需的 Web Service QoS。