Use a command script to list WS-Notification services. A WS-Notification service provides access to service integration bus resources for Web services publish and subscribe clients.
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 WS-Notification services in the configuration that match the specified input parameters. This command can be used to obtain a reference to one or more WS-Notification services that have already been created in the configuration in order to work with the service further, for example to add a new WS-Notification topic namespace definition.
None.
None.
Obtain a reference to the WS-Notification service that is created in the example from topic "Creating a new WS-Notification service using the wsadmin tool".
set wsnServiceList [$AdminTask listWSNServices {-bus bus1 -name NewWSNService}] set wsnService [ lindex $wsnServiceList 0 ]