Example: Configuring a new data source using wsadmin
- Identify the parent ID:
set newjdbc [$AdminConfig getid /Cell:mycell/Node:mynode/JDBCProvider:JDBC1/]Example output:
JDBC1(cells/mycell/nodes/mynode:resources.xml#JDBCProvider_1)- Obtain the required attributes:
$AdminConfig required DataSourceExample output:
Attribute Type name String- Set up required attributes:
set name [list name DS1] set dsAttrs [list $name]- Create a data source:
set newds [$AdminConfig create DataSource $newjdbc $dsAttrs]Example output:
DS1(cells/mycell/nodes/mynode:resources.xml#DataSource_1)- Save the changes with the following command:
$AdminConfig save