Configure new WebSphere queues using scripting

 

+

Search Tips   |   Advanced Search

 

Procedure

Start wsadmin and execute...

Jacl:

### Identify the parent ID: 
set newjmsp [$AdminConfig getid /Cell:mycell/Node:mynode/JMSProvider:JMSP1/]

### Get required attributes: 
$AdminConfig required WASQueue

### Set up required attributes: 
set name [list name WASQ1]
set jndi [list jndiName jms/WASQ1]
set wqAttrs [list $name $jndi]

### Create was queue: 
$AdminConfig create WASQueue $newjmsp $wqAttrs

$AdminConfig save

Jython

newjmsp = AdminConfig.getid('/Cell:mycell/Node:myNode/JMSProvider:JMSP1/') 
print newjmsp
print AdminConfig.required('WASQueue')
name = ['name', 'WASQ1']
jndi = ['jndiName', 'jms/WASQ1']
wqAttrs = [name, jndi]
print wqAttrs
print AdminConfig.create('WASQueue', newjmsp, wqAttrs)

In a network deployment environment only, synchronize the node.


 

See Also

Commands for the AdminConfig object

 



 

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.