Example: Configuring a new JMS provider using wsadmin
- Identify the parent ID:
Using Jacl:
set node [$AdminConfig getid /Cell:mycell/Node:mynode/]
Example
output:
mynode(cells/mycell/nodes/mynode:node.xml#Node_1)
Using Jython:
node = AdminConfig.getid('/Cell:mycell/Node:mynode/') print node
- Get required attributes:
Using Jacl:
$AdminConfig required JMSProvider
Example
output:
Attribute Type name String externalInitialContextFactory String externalProviderURL String
Using Jython:
print AdminConfig.required('JMSProvider')
- Set up required attributes:
Using 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]
Example output:
{name JMSP1} {externalInitialContextFactory {Put the external initial context factory here }} {externalProviderURL {Put the external provider URL here}}
Using 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
- Create the JMS provider:
Using Jacl:
set newjmsp [$AdminConfig create JMSProvider $node $jmspAttrs]
Example
output:
JMSP1(cells/mycell/nodes/mynode:resources.xml#JMSProvider_1)
Using Jython:
newjmsp = AdminConfig.create('JMSProvider', node, jmspAttrs) print newjmsp
- Save the changes with the following command:
Using Jacl:
$AdminConfig save
Using Jython:
AdminConfig.save()
Example: Configuring a new JMS destination using wsadmin
Example: Configuring a new JMS connection using wsadmin
Example: Configuring a new WebSphere queue connection factory using wsadmin
Example: Configuring a new WebSphere topic connection factory using wsadmin
Example: Configuring a new WebSphere queue using wsadmin
Example: Configuring a new WebSphere topic using wsadmin
Example: Configuring a new MQ queue connection factory using wsadmin
Example: Configuring a new MQ topic connection factory using wsadmin
Example: Configuring a new MQ queue using wsadmin
Example: Configuring a new MQ topic using wsadmin