Configure a new data source
- Identify the parent ID:
set newjdbc [$AdminConfig getid /Cell:cellname/Node:nodename/JDBCProvider:JDBCProviderName/] puts $newjdbcExample output:
JDBCProviderName(cells/cellname/nodes/nodename:resources.xml#JDBCProvider_1)- Obtain the required attributes:
$AdminConfig required DataSourceExample output:
Attribute Type name String- Setting 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/cellname/nodes/nodename:resources.xml#DataSource_1)- Save changes:
$AdminConfig save
Configure a new connection pool using wsadmin
Configure a new data source custom property using wsadmin