listWSNAdministeredSubscribers command
Use the listWSNAdministeredSubscribers command to list the WS-Notification administered subscribers in the configuration of the target WS-Notification service point that match the specified input parameters.
如果要執行這個指令,請使用 wsadmin Scripting 用戶端的 AdminTask 物件。
wsadmin Scripting 用戶端是從 Qshell 執行.
如需相關資訊,請參閱利用 wsadmin Script 配置 Qshell 來執行 WebSphere Script.
服務整合匯流排指令有指令行說明:
- 如需可用的 WS-Notification 指令清單,以及每個指令的簡要說明,請在 wsadmin 提示下,輸入下列指令:
print AdminTask.help('WSNotificationCommands')
- 如需給定指令的概觀說明,請在 wsadmin 提示下,輸入下列指令:
print AdminTask.help('command_name')
Purpose
This command lists all the administered subscribers in the configuration of the target WS-Notification service point that match the specified input parameters. You can use this command to obtain a reference to one or more administered subscribers that have already been created in the configuration in order to work with the administered subscriber further, for example to delete the definition.
Target object
WSNServicePoint
Required parameters
None.
Conditional parameters
None.
Optional parameters
- -endpoint
- 過濾清單時所憑藉的遠端 Web 服務端點。 換言之,就是通知生產端或通知分配管理系統應用程式的端點參照(網址)。例如 http://remoteproducer.com。
- -topic
- 說明過濾清單時所憑藉之通知訊息類別的主題表示式。 這說明遞送到 WS-Notification 服務點之通知訊息的類別。 例如,stock/IBM。這個內容可包含萬用字元(如果您所選主題用語有支援的話)。
- -topicNamespace
- 過濾清單時所憑藉的名稱空間 URI:
- -dialect
- 換言之,依照 WS-Topics 標準所定義,就是所選主題用語的名稱, by which the list is filtered. 這個參數的值如下:SIMPLE、CONCRETE、FULL。 For more information, see WS-Topics.
Examples
- Using Jython:
wsnSubscriberList = AdminTask.listWSNAdministeredSubscribers(newServicePoint) wsnSubscriber = wsnSubscriberList.split("\n")[0].rstrip()
- Using Jacl:
set wsnSubscriberList [$AdminTask listWSNAdministeredSubscribers $newServicePoint] set wsnSubscriber [ lindex $wsnSubscriberList 0 ]
- Using Jython:
wsnSubscriberList = AdminTask.listWSNAdministeredSubscribers(newServicePoint, ["-topic", "stock"]) wsnSubscriber = wsnSubscriberList.split("\n")[0].rstrip()
- Using Jacl:
set wsnSubscriberList [$AdminTask listWSNAdministeredSubscribers $newServicePoint {-topic stock}] set wsnSubscriber [ lindex $wsnSubscriberList 0 ]