Defining topic role inheritance by using the wsadmin tool
Use these commands to define the inheritance of topic roles by child topics within a topic hierarchy.
To run these commands, use the AdminTask object of the wsadmin scripting client. Each command acts on multiple objects in one operation. The commands are provided to allow you to make the most commonly-required types of update in a consistent manner, where modifying the underlying objects directly would be error-prone.
The wsadmin scripting client is run from Qshell.
For more information, see Configuring Qshell to run WebSphere scripts using wsadmin scripting.
Command-line help is provided for service integration bus commands:
- For a list of the available service integration bus security commands in Jython
and a brief description of each command, enter the following command at the wsadmin
prompt:
print AdminTask.help('SIBAdminBusSecurityCommands')
- For overview help on a given command, enter the following command at the wsadmin
prompt:
print AdminTask.help('command_name')
After using the command, save your changes to the master configuration by using the
following command:
AdminConfig.save()
Commands
- Defining Sender role inheritance
- To set or disable Sender role inheritance for a topic within the specified
topic space, use the following command:
- Using Jython:
AdminTask.setInheritSenderForTopic("-bus busName -topicSpace topicSpaceName -topic topicName -inherit <true|false>")
- Using Jacl:
$AdminTask setInheritSenderForTopic {-bus busName -topicSpace topicSpaceName -topic topicName -inherit <true|false>}
- Using Jython:
- Defining Receiver role inheritance
- To set or disable Receiver role inheritance for a topic within the specified
topic space, use the following command:
- Using Jython:
AdminTask.setInheritReceiverForTopic("-bus busName -topicSpace topicSpaceName -topic topicName -inherit <true|false>")
- Using Jacl:
$AdminTask setInheritReceiverForTopic {-bus busName -topicSpace topicSpaceName -topic topicName -inherit <true|false>}
- Using Jython: