Example: Configuring a new connection pool using wsadmin
- Identify the parent ID:
Using Jacl:
set newds [$AdminConfig getid /Cell:mycell/Node:mynode/JDBCProvider:JDBC1/DataSource:DS1/]
Using Jython:
newds = AdminConfig.getid('/Cell:mycell/Node:mynode/JDBCProvider:JDBC1/DataSource:DS1/')
Example output:
DS1(cells/mycell/nodes/mynode:resources.xml$DataSource_1)
- Creating connection pool:
Using Jacl:
$AdminConfig create ConnectionPool $newds {}
Using Jython:
print AdminConfig.create('ConnectionPool', newds, [])
Example
output:
(cells/mycell/nodes/mynode:resources.xml#ConnectionPool_1)
- Save the changes with the following command:
Using Jacl:
$AdminConfig save
Using Jython:
AdminConfig.save()