+

Search Tips   |   Advanced Search

Configure new resource environment entries using wsadmin.sh

Use wsadmin scripting to configure a new resource environment entry.

Start the wsadmin scripting client. Also, create a resource environment provider.

Perform the following steps to configure a new resource environment entry.


Tasks

  1. Identify the parent ID and assign it to the newrep variable.

    • Jacl:

      set newrep [$AdminConfig  getid  /Cell:mycell/Node:mynode/ResourceEnvironmentProvider:REP1/]
      
    • Jython:

      newrep = AdminConfig.getid('/Cell:mycell/Node:mynode/ResourceEnvironmentProvider:REP1/') 
      print newrep
      

    Example output:

    REP1(cells/mycell/nodes/mynode|resources.xml#ResourceEnvironmentProvider_1)
    
  2. Identify the required ResourceEnvEntry attribute:

    • Jacl:

      $AdminConfig required ResourceEnvEntry
      
    • Jython:

      print AdminConfig.required('ResourceEnvEntry')
      

    Example output:

    Attribute          Type
    name               String
    jndiName           String
    

  3. Set up the required attributes:

    • Jacl:

      set name [list name REE1]
      set jndiName [list jndiName myjndi]
      set resEnvRefAttrs [list $name $jndiName]
      
    • Jython:

      name = ['name', 'REE1']
      jndiName = ['jndiName', 'myjndi']
      resEnvRefAttrs = [name, jndiName]
      

  4. Set up the required attributes and configure the new reference:

    • Jacl:

      set newResEnvRef [$AdminConfig create ResourceEnvEntry $newrep $resEnvRefAttrs]
      
    • Jython:

      newref = AdminConfig.create('ResourceEnvEntry', newrep, resEnvRefAttrs)
      print newref
      

    Example output:

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

  5. Save the configuration changes. See Saving configuration changes with the wsadmin tool topic.
  6. In a network deployment environment only, synchronize the node. See Synchronize nodes with the wsadmin tool topic.

  • wsadmin AdminConfig
  • Configure new resource environment providers
  • Save wsadmin configuration changes
  • Synchronize nodes
  • Start the wsadmin scripting client
  • Commands for the AdminConfig object