showWSNAdministeredSubscriber command
Use the showWSNAdministeredSubscriber command to show the properties of an administered subscriber.
如果要執行這個指令,請使用 wsadmin Scripting 用戶端的 AdminTask 物件。
![[IBM i]](../images/iseries.gif)
wsadmin Scripting 用戶端是從 Qshell 執行.
如需相關資訊,請參閱利用 wsadmin Script 配置 Qshell 來執行 WebSphere Script.
服務整合匯流排指令有指令行說明:
- 如需可用的 WS-Notification 指令清單,以及每個指令的簡要說明,請在 wsadmin 提示下,輸入下列指令:
print AdminTask.help('WSNotificationCommands')
- 如需給定指令的概觀說明,請在 wsadmin 提示下,輸入下列指令:
print AdminTask.help('command_name')
Purpose
This command shows the properties
of a WS-Notification administered subscriber object in a human-readable
form. There are two patterns for use of this command:
- The required administered subscriber is determined by the target WSNAdministeredSubscriber object.
- The required administered subscriber is determined by a combination of the target WS-Notification service point, and the endpoint, topic, topicNamespace and dialect provided as parameters.
Target object
There are two choices for
the target type of this command:
- WSNAdministeredSubscriber (explicitly nominates the administered subscriber to be shown).
- WSNServicePoint (determines the required WS-Notification service point; must be used in combination with the conditional parameters).
Required parameters
None.
Conditional parameters
- -endpoint
- 過濾清單時所憑藉的遠端 Web 服務端點。 換言之,就是通知生產端或通知分配管理系統應用程式的端點參照(網址)。例如 http://remoteproducer.com。 如果目標類型是 WSNServicePoint,就必須指定這個參數,如果提供了 WSNAdministeredSubscriber 目標,就不能指定這個參數。
- -topic
- 說明過濾清單時所憑藉之通知訊息類別的主題表示式。 這說明遞送到 WS-Notification 服務點之通知訊息的類別。 例如,stock/IBM。這個內容可包含萬用字元(如果您所選主題用語有支援的話)。 如果目標類型是 WSNServicePoint,就必須指定這個參數,如果提供了 WSNAdministeredSubscriber 目標,就不能指定這個參數。
- -topicNamespace
- 過濾清單時所憑藉的名稱空間 URI: 如果目標類型是 WSNServicePoint,就必須指定這個參數,如果提供了 WSNAdministeredSubscriber 目標,就不能指定這個參數。
- -dialect
- 換言之,依照 WS-Topics 標準所定義,就是所選主題用語的名稱, by which the list is filtered. 這個參數的值如下:SIMPLE、CONCRETE、FULL。 For more information, see WS-Topics. 如果目標類型是 WSNServicePoint,就必須指定這個參數,如果提供了 WSNAdministeredSubscriber 目標,就不能指定這個參數。
Optional parameters
None.
Examples
Show the properties of the administered
subscriber newAdminSub created in the example from topic "Creating a new WS-Notification
administered subscriber by using the wsadmin tool":
- Using Jython:
AdminTask.showWSNAdministeredSubscriber(newAdminSub) - Using Jacl:
$AdminTask showWSNAdministeredSubscriber $newAdminSub
Show the properties of the administered subscriber newAdminSub,
created in the example from topic "Creating a new WS-Notification
administered subscriber by using the wsadmin tool", by using
the WSNServicePoint target pattern:
- Using Jython:
AdminTask.showWSNAdministeredSubscriber(newServicePoint, ["-topic", "stock"]) - Using Jacl:
$AdminTask showWSNAdministeredSubscriber $newServicePoint {-topic stock}

參照主題