Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Scripting for data access resources > Configure data access with wsadmin scripting


Configure new connection pools using wsadmin

We can use wsadmin scripting tool to configure new connection pools. See the topic Starting the wsadmin scripting client article for more information.

Perform the following steps:


Procedure

  1. Identify the parent ID:

      ### Jacl

      set newds [$AdminConfig getid /Cell:mycell/Node:mynode/JDBCProvider:JDBC1/DataSource:DS1/]
      

      ### Jython

      newds = AdminConfig.getid('/Cell:mycell/Node:mynode/JDBCProvider:JDBC1/DataSource:DS1/')
      

    Example output:

    DS1(cells/mycell/nodes/mynode|resources.xml$DataSource_1)
    

  2. Create connection pool:

      ### Jacl

      $AdminConfig create ConnectionPool $newds {}
      

      ### Jython

      print AdminConfig.create('ConnectionPool', newds, [])
      

    Example output:

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

  3. Save the configuration changes. See the topic Saving configuration changes with wsadmin.sh for more information.

  4. Synchronize the node. See the topic Synchronizing nodes with the wsadmin tool for more information.


Use the wsadmin scripting AdminConfig object for scripted administration
Synchronize nodes using wsadmin.sh
Start the wsadmin scripting client using wsadmin.sh
Saving configuration changes with wsadmin.sh


Related


Commands for the AdminConfig object using wsadmin.sh

+

Search Tips   |   Advanced Search