Listing WS-Notification services using the wsadmin tool

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.

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:

Purpose

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.

Command name
listWSNServices
Target
None
Result
A listing of WS-Notification services that match the requested pattern.

Required parameters

None.

Conditional parameters

None.

Optional parameters

bus
The name of the service integration bus by which the list of WS-Notification services is filtered.
name
The name of the WS-Notification service by which the list of WS-Notification services is filtered.

Example

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 ] 



Related concepts
Learning about WS-Notification
Related tasks
WS-Notification - publish and subscribe messaging for Web services
Securing WS-Notification
Related reference
Deleting a WS-Notification service using the wsadmin tool
Showing the properties of a WS-Notification service using the wsadmin tool
WS-Notification troubleshooting tips
Creating a new WS-Notification service using the wsadmin tool
Reference topic Reference topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 30, 2013 4:53:43 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-base-dist&topic=rjwsn_cli_wsnserv_list
File name: rjwsn_cli_wsnserv_list.html