Set new JMS providers using scripting
Use wsadmin and scripting to configure a new JMS provider.
Before starting this task, wsadmin must be running. See the Start wsadmin article for more information.
Perform the following steps to configure a new JMS provider:
- Identify the parent ID:
- Jacl...
set node [$AdminConfig getid /Cell:mycell/Node:mynode/]- Jython...
node = AdminConfig.getid('/Cell:mycell/Node:mynode/') print node
For example...
mynode(cells/mycell/nodes/mynode|node.xml#Node_1)- Get required attributes:
For example...
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]- Jython...
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
For example...
{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]- Jython...
newjmsp = AdminConfig.create('JMSProvider', node, jmspAttrs)
print newjmsp
For example...
JMSP1(cells/mycell/nodes/mynode|resources.xml#JMSProvider_1)- Save the configuration changes. See the Saving configuration changes with wsadmin article for more information.
- In a network deployment environment only, synchronize the node. See the Synchronizing nodes with wsadmin article for more information.
Related tasks
Use the AdminConfig object for scripted administration
Related
Commands for the AdminConfig object