Before you begin
Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.Why and when to perform this task
Perform the following steps to configure a new data source:Steps for this task
Using Jacl:
set newjdbc [$AdminConfig getid /Cell:mycell/Node:mynode/JDBCProvider:JDBC1/]
newjdbc = AdminConfig.getid('/Cell:mycell/Node:mynode/JDBCProvider:JDBC1/') print newjdbc
JDBC1(cells/mycell/nodes/mynode|resources.xml#JDBCProvider_1)
Using Jacl:
$AdminConfig required DataSource
print AdminConfig.required('DataSource')
Attribute Type name String
Using Jacl:
set name [list name DS1] set dsAttrs [list $name]
name = ['name', 'DS1'] dsAttrs = [name]
Using Jacl:
set newds [$AdminConfig create DataSource $newjdbc $dsAttrs]
newds = AdminConfig.create('DataSource', newjdbc, dsAttrs) print newds
DS1(cells/mycell/nodes/mynode|resources.xml#DataSource_1)
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object