Example: Configuring a new JMS provider using wsadmin
- Identify the parent ID:
set node [$AdminConfig getid /Cell:mycell/Node:mynode/]Example output:
mynode(cells/mycell/nodes/mynode:node.xml#Node_1)- Get required attributes:
$AdminConfig required JMSProviderExample output:
Attribute Type name String externalInitialContextFactory String externalProviderURL String- Set up required attributes:
set name [list name JMSP1] set extICF [list externalInitialContextFactory "Put the external initial context factory here"] set extPURL [list externalProviderURL "Put the external provider URL here"] set jmspAttrs [list $name $extICF $extPURL]Example output:
{name JMSP1} {externalInitialContextFactory {Put the external initial context factory here }} {externalProviderURL {Put the external provider URL here}}- Create the JMS provider:
set newjmsp [$AdminConfig create JMSProvider $node $jmspAttrs]Example output:
JMSP1(cells/mycell/nodes/mynode:resources.xml#JMSProvider_1)- Save the changes with the following command:
$AdminConfig save