Use the createSIBJMSTopic command to create a new JMS topic for the default messaging provider at a specific scope.
To run the command, use the AdminTask object of the wsadmin scripting client.
The wsadmin scripting client is run from Qshell. For more information, see Configuring Qshell to run WebSphere Application Server scripts using wsadmin scripting.
print AdminTask.help('SIBJMSAdminCommands')
print AdminTask.help('command_name')
AdminConfig.save()
This command creates a JMS topic for the default messaging provider at a specific scope.
Scope of the default messaging provider at which the JMS topic is to be created.
-name jmstopic_name -jndiName jndi_name
-description text -topicName topic_name -topicSpace topicspace_name -deliveryMode Application | NonPersistent | Persistent -timeToLive time -priority priority -readAhead AsConnection | AlwaysOn | AlwaysOff -busName name
wsadmin>AdminConfig.getid("/Node:9994GKCNode01" ) '9994GKCNode01(cells/9994GKCNode01Cell/nodes/9994GKCNode01|node.xml#Node_1)' wsadmin>AdminTask.createSIBJMSTopic("9994GKCNode01(cells/9994GKCNode01Cell/ nodes/9994GKCNode01|node.xml#Node_1)", ["-name", "jmstopic2", "-jndiName", "jms/jnmstopic2", "-topicSpace", "sportshall"]) 'jmstopic2(cells/9994GKCNode01Cell/nodes/9994GKCNode01|resources.xml# J2CAdminObject_1098738992263)' wsadmin>AdminTask.listSIBJMSTopics("9994GKCNode01(cells/9994GKCNode01Cell/ nodes/9994GKCNode01|node.xml#Node_1)") 'topic1(cells/9994GKCNode01Cell/nodes/9994GKCNode01|resources.xml# J2CAdminObject_1098738449292) jmstopic2(cells/9994GKCNode01Cell/nodes/9994GKCNode01|resources.xml# J2CAdminObject_1098738992263)'
wsadmin>$AdminConfig getid /Node:9994GKCNode01 9994GKCNode01(cells/9994GKCNode01Cell/nodes/9994GKCNode01|node.xml#Node_1) wsadmin>$AdminTask createSIBJMSTopic 9994GKCNode01(cells/9994GKCNode01Cell/nodes/9994GKCNode01|node.xml#Node_1) {-name jmstopic2 -jndiName jms/jnmstopic2 -topicSpace sportshall} jmstopic2(cells/9994GKCNode01Cell/nodes/9994GKCNode01|resources.xml# J2CAdminObject_1098738992263) wsadmin>$AdminTask listSIBJMSTopics 9994GKCNode01(cells/9994GKCNode01Cell/nodes/9994GKCNode01|node.xml#Node_1) topic1(cells/9994GKCNode01Cell/nodes/9994GKCNode01|resources.xml# J2CAdminObject_1098738449292) jmstopic2(cells/9994GKCNode01Cell/nodes/9994GKCNode01|resources.xml# J2CAdminObject_1098738992263)