+

Search Tips   |   Advanced Search

Set new WebSphere topic connection factories using scripting


Use scripting and wsadmin to configure new WebSphere topic connection factories.

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

Perform the following steps to configure a new WebSphere topic connection factory:

 

  1. Identify the parent ID:

    • Jacl...

      set v5jmsp [$AdminConfig getid "/Cell:mycell/Node:mynode/JMSProvider:WebSphere JMS Provider/"]
    • Jython...

      v5jmsp = AdminConfig.getid('/Cell:mycell/Node:myNode/JMSProvider:WebSphere JMS Provider/') print v5jmsp

    For example...

    "WebSphere JMS Provider(cells/mycell/nodes/mynode|resources.xml#builtin_jmsprovider)"

  2. Get required attributes:

    • Jacl...

      $AdminConfig required WASTopicConnectionFactory
    • Jython...

      print AdminConfig.required('WASTopicConnectionFactory')

    For example...

    Attribute Type name String jndiName String port ENUM(DIRECT, QUEUED)

  3. Set up required attributes:

    • Jacl...

      set name [list name WASTCF]
      set jndi [list jndiName jms/WASTCF]
      set port [list port QUEUED]
      set mtcfAttrs [list $name $jndi $port]

      For example...

      {name WASTCF} {jndiName jms/WASTCF} {port QUEUED}
    • Jython...

      name = ['name', 'WASTCF'] jndi = ['jndiName', 'jms/WASTCF'] port = ['port', 'QUEUED'] mtcfAttrs = [name, jndi, port] print mtcfAttrs

      For example...

      [[name, WASTCF], [jndiName, jms/WASTCF], [port, QUEUED]]

  4. Create was topic connection factories:

    • Jacl...

      $AdminConfig create WASTopicConnectionFactory $v5jmsp $mtcfAttrs
    • Jython...

      print AdminConfig.create('WASTopicConnectionFactory', v5jmsp, mtcfAttrs)

    For example...

    WASTCF(cells/mycell/nodes/mynode|resources.xml#WASTopicConnectionFactory_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