Configure a new WebSphere topic connection factory using wsadmin

 

Using Jacl...

### Identify the parent ID...

set JMSParent [$AdminConfig getid /Cell:cell/Node:node/JMSProvider:JMSP1/]


### Get required attributes...
$AdminConfig required WASTopicConnectionFactory


### Set up required attributes...
set name [list name WASTCF]
set jndi [list jndiName jms/WASTCF]
set port [list port QUEUED]
set mtcfAttrs [list $name $jndi $port]


### Create was topic connection factories...
$AdminConfig create WASTopicConnectionFactory $JMSParent $mtcfAttrs


$AdminConfig save

 

Using Jython

JMSParent = AdminConfig.getid('/Cell:cell/Node:node/JMSProvider:JMSP1/')
print JMSParent

print AdminConfig.required('WASTopicConnectionFactory')

name = ['name', 'WASTCF']
jndi = ['jndiName', 'jms/WASTCF']
port = ['port', 'QUEUED']
mtcfAttrs = [name, jndi, port]
print mtcfAttrs


print AdminConfig.create('WASTopicConnectionFactory', JMSParent, mtcfAttrs)

AdminConfig.save()