Configure a new WebSphere queue 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 WASQueueConnectionFactory ### Set up required attributes... set name [list name WASQCF] set jndi [list jndiName jms/WASQCF] set mqcfAttrs [list $name $jndi] ### Create was queue connection factories... $AdminConfig create WASQueueConnectionFactory $JMSParent $mqcfAttrs $AdminConfig save
Using Jython
JMSParent = AdminConfig.getid('/Cell:cell/Node:node/JMSProvider:JMSP1/') print JMSParent print AdminConfig.required('WASQueueConnectionFactory') name = ['name', 'WASQCF'] jndi = ['jndiName', 'jms/WASQCF'] mqcfAttrs = [name, jndi] print mqcfAttrs print AdminConfig.create('WASQueueConnectionFactory', JMSParent, mqcfAttrs) AdminConfig.save()