You can configure new topics by using the wsadmin tool
and scripting.
Before you begin
Before starting this task, the wsadmin tool must be running.
About this task
Complete the following steps to configure a new topic:
Procedure
- Identify the parent ID:
Example output:
"WebSphere JMS Provider(cells/mycell/nodes/mynode|resources.xml#builtin_jmsprovider)"
- Get the required attributes:
Example output:
Attribute Type
name String
jndiName String
topic String
- Set up the required attributes:
- Using Jacl:
set name [list name WAST1]
set jndi [list jndiName jms/WAST1]
set topic [list topic "Put your topic here"]
set wtAttrs [list $name $jndi $topic]
Example output:
{name WAST1} {jndiName jms/WAST1} {topic {Put your topic here}}
- Using Jython:
name = ['name', 'WAST1']
jndi = ['jndiName', 'jms/WAST1']
topic = ['topic', "Put your topic here"]
wtAttrs = [name, jndi, topic]
print wtAttrs
Example output:
[[name, WAST1], [jndiName, jms/WAST1], [topic, "Put your topic here"]]
- Create the topic:
- Using Jacl:
$AdminConfig create WASTopic $v5jmsp $wtAttrs
- Using Jython:
print AdminConfig.create('WASTopic', v5jmsp, wtAttrs)
Example output:WAST1(cells/mycell/nodes/mynode|resources.xml#WASTopic_1)
- Save the configuration changes.
- In a network deployment environment only,
synchronize the node.