A topic namespace can optionally have topic namespace documents applied to it that define the structure of the topics that are permitted within the namespace. Use a command script to list the topic namespace documents in the configuration of the target WS-Notification topic namespace that match the specified input parameters.
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 topic namespace documents in the configuration of the target WS-Notification topic namespace that match the specified input parameters. This command can be used to obtain a reference to one or more topic namespace documents that have already been created in the configuration in order to work with the topic namespace document further, for example to delete the definition.
None.
None.
Obtain a reference to the first topic namespace document defined against the "newTopicNamespace" object.
set wsnDocList [$AdminTask listWSNTopicDocuments $newTopicNamespace] set wsnTopicDoc [ lindex $wsnDocList 0 ]
Obtain a reference to the first topic namespace document defined against the "newTopicNamespace" object with a given url
set wsnDocList [$AdminTask listWSNTopicDocuments $newTopicNamespace {-url file://c:/temp/doc.xml}] set wsnDoc [ lindex $wsnDocList 0 ]