You can use scripting and the wsadmin tool to configure
a new Java Message Service (JMS)
destination.
Before you begin
Before starting this task, the wsadmin tool must be running.
About this task
Perform the following steps to configure a new JMS destination:
Procedure
- Identify the parent ID:
Example output:
JMSP1(cells/mycell/nodes/mynode|resources.xml#JMSProvider_1)
- Get the required attributes:
Example output:
Attribute Type
name String
jndiName String
externalJNDIName String
- Set up the required attributes:
- Using Jacl:
set name [list name JMSD1]
set jndi [list jndiName jms/JMSDestination1]
set extJndi [list externalJNDIName jms/extJMSD1]
set jmsdAttrs [list $name $jndi $extJndi]
- Using Jython:
name = ['name', 'JMSD1']
jndi = ['jndiName', 'jms/JMSDestination1']
extJndi = ['externalJNDIName', 'jms/extJMSD1']
jmsdAttrs = [name, jndi, extJndi]
print jmsdAttrs
Example output:{name JMSD1} {jndiName jms/JMSDestination1} {externalJNDIName jms/extJMSD1}
- Create the generic JMS destination:
- Using Jacl:
$AdminConfig create GenericJMSDestination $newjmsp $jmsdAttrs
- Using Jython:
print AdminConfig.create('GenericJMSDestination', newjmsp, jmsdAttrs)
Example output: JMSD1(cells/mycell/nodes/mynode|resources.xml#GenericJMSDestination_1)
- Save the configuration changes.
- In a network deployment environment only,
synchronize the node.