Configure a new URL provider using wsadmin
Using Jacl
### Identify the parent ID and assign it to the node variable. set node [$AdminConfig getid /Cell:cell/Node:node/] ### Identify the required attributes... $AdminConfig required URLProvider ### 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] ### Create a URL provider... $AdminConfig create URLProvider $node $urlpAttrs $AdminConfig save
Using Jython
### Identify the parent ID and assign it to the node variable. node = AdminConfig.getid('/Cell:cell/Node:node/') print node ### Identify the required attributes... print AdminConfig.required('URLProvider') ### Set up the required attributes... name = ['name', 'URLP1'] shcn = ['streamHandlerClassName', "Put the stream handler classname here"] protocol = ['protocol', "Put the protocol here"] urlpAttrs = [name, shcn, protocol] print urlpAttrs ### Create a URL provider... print AdminConfig.create('URLProvider', node, urlpAttrs) AdminConfig.save()