Example: Configuring a new URL provider using wsadmin
An example configuring a new URL provider follows:
- Identify the parent ID and assign it to the node variable.
set node [$AdminConfig getid /Cell:mycell/Node:mynode/]An example of this output follows:
mynode(cells/mycell/nodes/mynode:node.xml#Node_1)- Identify the required attributes:
$AdminConfig required URLProviderAn example of this output follows:
Attribute Type streamHandlerClassName String protocol String name String- Set up the required attributes:
set name [list name URLP1] set shcn [list streamHandlerClassName "Put the stream handler classname here"] set protocol [list protocol "Put the protocol here"] set urlpAttrs [list $name $shcn $protocol]An example of this output follows:
{name URLP1} {streamHandlerClassName {Put the stream handler classname here}} {protocol {Put the protocol here}}- Create a URL provider:
$AdminConfig create URLProvider $node $urlpAttrsAn example of this output follows:
URLP1(cells/mycell/nodes/mynode:resources.xml#URLProvider_1)- Save the changes with the following command:
$AdminConfig save