WAS v8.5 > Script 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.

Before starting this task, wsadmin must be running. See the topic Starting the wsadmin scripting client article for more information. Perform the following steps:

  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. Creating 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 for more information.


Related


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


Reference:

Commands for the AdminConfig object using wsadmin.sh


+

Search Tips   |   Advanced Search