Set new connection pools using scripting
Use scripting and wsadmin to configure new connection pools.
- Start wsadmin
- 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)- Create connection pool:
### Jacl
$AdminConfig create ConnectionPool $newds {}
### Jython
print AdminConfig.create('ConnectionPool', newds, [])Example output...
(cells/mycell/nodes/mynode|resources.xml#ConnectionPool_1)- Save the configuration changes.
- Synchronize the node
Related tasks
Use the AdminConfig object for scripted administration
Related
Commands for the AdminConfig object