Configure new J2C activation specs using scripting

 

+

Search Tips   |   Advanced Search

 

Jacl...

set newra [$AdminConfig getid /Cell:mycell/Node:mynode/J2CResourceAdapter:RAR1/]

$AdminTask listMessageListenerTypes $newra

$AdminTask createJ2CActivationSpec $newra { 
    -name ac1 
    -jndiName eis/ac1 
    -messageListenerType javax.jms.MessageListener
}

Jython...

newra = AdminConfig.getid('/Cell:mycell/Node:mynode/J2CResourceAdapter:RAR1/')
print newra

$AdminTask listMessageListenerTypes $newra

AdminTask.createJ2CActivationSpec
(
    newra, 
    [
        '-name', 
        'ao1', 
        '-jndiName', 
        'eis/ao1', 
        '-message', 
        'ListenerType', 
        'javax.jms.MessageListener'
    ]
)


 

See Also


AdminConfig object for scripted administration
AdminTask object for scripted administration

 

See Also


Commands for the AdminConfig object
Commands for the AdminTask object