createJAXWSHandlerList command
Use the createJAXWSHandlerList command to create a Java API for XML-based Web Services (JAX-WS) handler list for use with Version 7.0 WS-Notification services.
We can create a new JAX-WS handler list using the wsadmin tool as described in this topic, or using the administrative console as described in Create a new JAX-WS handler list.
We can only add previously-configured handlers to a handler list. To configure a handler, see the createJAXWSHandler command.
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 Configure Qshell to run WebSphere scripts .
Command-line help is provided for service integration bus commands:
- For a list of the available WS-Notification commands, plus a brief description of each command, enter the following command at the wsadmin prompt:
print AdminTask.help('WSNotificationCommands')
- For overview help on a given command, enter the following command at the wsadmin prompt:
print AdminTask.help('command_name')
After using the command, save the changes to the master configuration using the following command:
AdminConfig.save()
Purpose
A Java API for XML-based Web Services (JAX-WS) handler is a Java class that performs a range of handling tasks. For example: logging messages, or transforming their contents, or terminating an incoming request. To enable handlers to undertake more complex operations, you chain them together into handler lists. The approach taken in WebSphere Application Server is to assign handler lists (rather than individual handlers) to WS-Notification service points (for inbound invocation handling) or WS-Notification services (for outbound invocation handling).
Target Object
A cell scope object.
Required parameters
- -name
- The name of the JAX-WS handler list.
This name must be unique at cell scope, and it must obey the following syntax rules:
- It must not start with "." (a period).
- It must not start or end with a space.
- It must not contain any of the following characters: \ / , # $ @ : ; " * ? < > | = + & % '
For example TestList.
Conditional parameters
None.
Optional parameters
- -description
- A description of the JAX-WS handler list.
- -handlers
- The list of JAX-WS handler names to be added to this list.
Each handler name supplied must exist as a JAX-WS handler object at cell scope. Handlers are applied in the sequence in which they appear in the handler list.
Example
Create the configuration for a particular JAX-WS handler list class:
- Jython:
targetCell = AdminConfig.list('Cell') JAXWSHandlerList = AdminTask.createJAXWSHandlerList(targetCell, '[-name handlerList1 -description desc -handlers [[handler1] [handler2]]]')
- Jacl:
$AdminTask createJAXWSHandlerList targetCell {-name handlerList1 -description desc -handlers {{handler1}{handler2}} }
Related concepts
WS-Notification
Related tasks
Use WS-Notification for publish and subscribe messaging for web services Secure WS-Notification Create a new JAX-WS handler list
WS-Notification troubleshooting tips
Related information:
JAX-WS Handler Lists [Collection] JAX-WS Handler Lists [Settings] Reference topic