配置 WS-Notification 可靠通知

如果要確定 WS-Notification Web 服務互動是以可靠的方式來進行,您可以配置 JAX-WS 型 7.0 版 WS-Notification 服務、JAX-WS 用戶端和 JAX-WS 型 WS-Notification 消費者 Web 服務(通過原則集功能)來使用 WS-ReliableMessaging。

開始之前

這項作業假設您已建立 7.0 版 WS-Notification 服務和服務點,且已建立兩個 JAX-WS 應用程式:
  • 從新服務點的 WSDL 建立的 JAX-WS 用戶端應用程式。
  • JAX-WS 型 WS-Notification 消費者 Web 服務。
如需如何建立這些應用程式的相關資訊,請參閱搭配新的 7.0 版 WS-Notification 服務點來使用 JAX-WS 用戶端和 Web 服務

關於這項作業

可靠通知是指能夠與 IBM WS-Notification 實作相互可靠地傳輸訊息。 啟用這個可靠性可以緩和 HTTP 之類網路傳輸通訊協定本質上存在的問題。
註: 這個可靠性不包括應用程式伺服器本身的行為。 如需相關資訊,請參閱 WS-Notification 和端對端可靠性

如果要啟用可靠通知,您可以將包含 WS-ReliableMessaging 原則的原則集套用於服務點、服務用戶端和服務消費者應用程式。

您可以針對應用程式伺服器和用戶端兩種環境來配置 JAX-WS 用戶端的原則集,其中包括小型用戶端。 如需相關資訊,請參閱Managing policy sets using the administrative console

程序

  1. 配置符合您的可靠傳訊需求的原則集。

    您可以在組織內重複使用現有的原則集,使用 WebSphere Application Server 所提供的 WS-ReliableMessaging 預設原則集,或建立新的原則集。 如需相關資訊,請參閱Configuring a WS-ReliableMessaging policy set by using the administrative console

  2. 配置 7.0 版 WS-Notification 服務和服務點的可靠通知。

    請套用包含 WS-ReliableMessaging 原則的原則集。

  3. 配置 JAX-WS 型 WS-Notification 用戶端應用程式,讓它利用 WS-ReliableMessaging 與目標 Web 服務可靠地互動。

    請依照配置 7.0 版 WS-Notification 服務的 Web 服務 QoSAttaching and binding a WS-ReliableMessaging policy set to a web service application by using the administrative console中的說明,套用包含 WS-ReliableMessaging 原則的原則集。

  4. 配置 JAX-WS 型 WS-Notification 消費者 Web 服務應用程式,讓它與試圖與它通訊的用戶端可靠地互動。

    請依照Attaching and binding a WS-ReliableMessaging policy set to a web service application by using the administrative console中的說明,套用包含 WS-ReliableMessaging 原則的原則集。

  5. 配置 WS-Notification 用戶端應用程式(已配置可靠互動)與 WS-Notification 服務點(也配置了類似的可靠訊息接收)通訊。
  6. 提示 WS-Notification 用戶端應用程式代表(可靠配置的)WS-Notification 消費者 Web 服務來進行訂閱。
    註: WS-Notification 消費者 Web 服務也可能扮演用戶端來執行它自己的訂閱。 如果需要可靠互動,這個用戶端會需要其他原則集配置。
  7. 起始來自 WS-Notification 用戶端應用程式的通知訊息發佈。

結果

JAX-WS 型 7.0 版 WS-Notification 服務點會以可靠的方式接收來自 WS-Notification 用戶端通知訊息,也會以可靠的方式,將通知訊息發佈到 WS-Notification 消費者 Web 服務。

指出主題類型的圖示 作業主題



時間戳記圖示 前次更新: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tjwsn_task_config_wsrm
檔名:tjwsn_task_config_wsrm.html