Configure new JMS providers using scripting
Procedure
- Start wsadmin
- Identify the parent ID:
Jacl:
set node [$AdminConfig getid /Cell:mycell/Node:mynode/] node = AdminConfig.getid('/Cell:mycell/Node:mynode/') print node
Example output:
mynode(cells/mycell/nodes/mynode|node.xml#Node_1)- Get required attributes:
Example output:
Attribute Type name String externalInitialContextFactory String externalProviderURL String- Set up required attributes:
Jacl:
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] name = ['name', 'JMSP1'] extICF = ['externalInitialContextFactory', "Put the external initial context factory here"] extPURL = ['externalProviderURL', "Put the external provider URL here"] jmspAttrs = [name, extICF, extPURL] print jmspAttrs
Example output:
{name JMSP1} {externalInitialContextFactory {Put the external initial context factory here }} {externalProviderURL {Put the external provider URL here}}- Create the JMS provider:
Jacl:
set newjmsp [$AdminConfig create JMSProvider $node $jmspAttrs] $AdminConfig save newjmsp = AdminConfig.create('JMSProvider', node, jmspAttrs) print newjmsp
Example output:
JMSP1(cells/mycell/nodes/mynode|resources.xml#JMSProvider_1)- In a network deployment environment only, synchronize the node.
See Also
AdminConfig object for scripted administration
See Also
Commands for the AdminConfig object