+

Search Tips   |   Advanced Search

Set new JMS providers using scripting


Use wsadmin and scripting to configure a new JMS provider.

Before starting this task, wsadmin must be running. See the Start wsadmin article for more information.

Perform the following steps to configure a new JMS provider:

 

  1. Identify the parent ID:

    • Jacl...

      set node [$AdminConfig getid /Cell:mycell/Node:mynode/]
    • Jython...

      node = AdminConfig.getid('/Cell:mycell/Node:mynode/') print node

    For example...

    mynode(cells/mycell/nodes/mynode|node.xml#Node_1)

  2. Get required attributes:

    • Jacl...

      $AdminConfig required JMSProvider
    • Jython...

      print AdminConfig.required('JMSProvider')

    For example...

    Attribute Type name String externalInitialContextFactory String externalProviderURL String

  3. Set up required attributes:

    • Jacl...

      set name [list name JMSP1] set extICF [list externalInitialContextFactory "Put the external initial context factory here"] set extPURL [list externalProviderURL "Put the external provider URL here"] set jmspAttrs [list $name $extICF $extPURL]
    • Jython...

      name = ['name', 'JMSP1']
      extICF = ['externalInitialContextFactory', "Put the external initial context factory here"]
      extPURL = ['externalProviderURL', "Put the external provider URL here"]
      jmspAttrs = [name, extICF, extPURL]
      print jmspAttrs

    For example...

    {name JMSP1} {externalInitialContextFactory {Put the external initial context factory here }} {externalProviderURL {Put the external provider URL here}}

  4. Create the JMS provider:

    • Jacl...

      set newjmsp [$AdminConfig create JMSProvider $node $jmspAttrs]
    • Jython...

      newjmsp = AdminConfig.create('JMSProvider', node, jmspAttrs)
      print newjmsp

    For example...

    JMSP1(cells/mycell/nodes/mynode|resources.xml#JMSProvider_1)

  5. Save the configuration changes. See the Saving configuration changes with wsadmin article for more information.

  6. In a network deployment environment only, synchronize the node. See the Synchronizing nodes with wsadmin article for more information.

 

Related tasks


Use the AdminConfig object for scripted administration

 

Related


Commands for the AdminConfig object