WS-Notification: Benefits
WS-Notification 可讓 Web 服務使用發佈和訂閱傳訊型樣。 This approach offers many business benefits.
WS-Notification 提供一個標準化的方法,供 Web 服務應用程式參與發佈和訂閱傳訊型樣,可能是接聽發生特定事件的通知,或是將事件通知插入系統中,供其他應用程式或系統管理工具消費。 這個 Web 服務規格的開放標準本質,意謂著應用程式可以相互通訊,且無需理會基礎硬體平台、軟體語言或供應商環境。 WebSphere® Application Server 中的 WS-Notification 實作支援 WS-Notification 標準,符合「WS-I 基本設定檔 1.0」的各項需求,且組合了其他相關標準,例如,處理「高可用性」和「工作量管理」的 WS-Addressing,以及處理元件之間可靠通訊的 WS-ReliableMessaging。
Within WebSphere Application Server, the NotificationBroker is implemented to provide flexible support for enterprise topologies including high availability and work load management patterns. 另外,WS-Notification 也容許在 WS-Notification 應用程式與其他服務整合匯流排的用戶端之間交換事件通知。 通過善用其他服務整合匯流排功能,您也可以利用這個功能,與其他 IBM 發佈和訂閱分配管理系統交換訊息。
您的消費端應用程式可以利用 XML 路徑 (XPath) 選取器,根據每個訊息的內容來過濾訊息,而不是接收您訂閱之主題的所有訊息. 這個內容型訂閱在定義您想要接收的資訊類型時,可提供較大的彈性,您的應用程式不需要處理本身的過濾。這樣可以增進效能,因為不相關的訊息不必從伺服器傳送到應用程式。
- 7.0 版:如果您想要透過原則集,將 JAX-WS WS-Notification 服務與 Web 服務的服務品質 (QoS) 組合起來,或您想要將 JAX-WS 處理程式套用於 WS-Notification 服務,請使用這種類型的服務。這是建議新部署採用的服務類型。 自 7.0 版開始,WebSphere Application Server 中已有提供這個 WS-Notification 選項。
- 6.1 版:如果您想要顯現使用 WebSphere Application Server 6.1 版中所提供之相同技術的 JAX-RPC WS-Notification 服務,其中包括將 JAX-RPC 處理程式套用於服務的功能,請使用這種類型的服務。自 6.1 版開始,WebSphere Application Server 中已有提供這個 WS-Notification 選項。
The Version 7.0 WS-Notification option allows you to use web services-based publish/subscribe messaging in a reliable way, through a standards-based connection mechanism, in an environment where network connectivity is not always available. For example, if you want to use the Internet to send warehouse or stock level notifications to remote customers, you must ensure that messages reach customers reliably so that they have accurate stock levels for sales and production planning. You can achieve this by composing JAX-WS based Version 7.0 WS-Notification services (for stock level notification) with WS-ReliableMessaging (to ensure reliable delivery of notifications).
- It is easier to configure using policy sets.
- It supports JAX-WS handlers.
- It avoids the need to install an SDO repository.