Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting)
createSIBJMSTopic command
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.
Command-line help is provided for service integration bus commands:
- For a list of the available service integration bus JMS commands in Jython and a brief description of each command, run at the wsadmin prompt:
print AdminTask.help('SIBJMSAdminCommands')
- For overview help on a given command, run at the wsadmin prompt:
print AdminTask.help('command_name')
After using the command, save changes to the master configuration; for example, by using the following command:
AdminConfig.save()
This command creates a JMS topic for the default messaging provider at a specific scope.
Target object
Scope of the default messaging provider at which the JMS topic is to be created.
Required parameters-name jmstopic_name -jndiName jndi_name
Optional parameters-description text -topicName topic_name -topicSpace topicspace_name -deliveryMode Application | NonPersistent | Persistent -timeToLive time -priority priority -readAhead AsConnection | AlwaysOn | AlwaysOff -busName name
Example
In the following examples, code blocks beginning with wsadmin> show code that is entered by the user. Lines that do not begin with wsadmin> show code that has been returned by the console.
### Jython
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)'### Jacl
wsadmin>$AdminConfig getid /Node:9994GKCNode019994GKCNode01(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)