Use a command script to list the WS-Notification administered subscribers in the configuration of the target WS-Notification service point that match the specified input parameters. An administered subscriber provides a mechanism for the WS-Notification service point to subscribe to an external notification producer at server startup time.
To run the command, use the AdminTask object of the wsadmin scripting client.
The wsadmin
scripting client is run from Qshell. For more information, see the topic "Configure
Qshell to run WebSphere Application Server scripts".
This command is only valid when used with WebSphere Application Server Version 6.1 and later application servers. Do not use it with earlier versions.
Command-line help is provided for service integration bus commands:
wsadmin> $AdminTask help WSNotificationCommands
wsadmin> $AdminTask help command_name
This command lists all the administered subscribers in the configuration of the target WS-Notification service point that match the specified input parameters. This command can be used 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.
None.
None.
Obtain a reference to the first administered subscriber defined against the "newServicePoint" object:
set wsnSubscriberList [$AdminTask listWSNAdministeredSubscribers $newServicePoint] set wsnSubscriber [ lindex $wsnSubscriberList 0 ]
Obtain a reference to the first administered subscriber defined against the "newServicePoint" object with a given topic:
set wsnSubscriberList [$AdminTask listWSNAdministeredSubscribers $newServicePoint {-topic stock/IBM}] set wsnSubscriber [ lindex $wsnSubscriberList 0 ]