Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
Perform the following steps to configure a new JDBC provider:
set node [$AdminConfig getid /Cell:mycell/Node:mynode/]
node = AdminConfig.getid('/Cell:mycell/Node:mynode/') print node
Example output:
mynode(cells/mycell/nodes/mynode|node.xml#Node_1)
$AdminConfig required JDBCProvider
print AdminConfig.required('JDBCProvider')
Example output:
Attribute Type name String implementationClassName String
set n1 [list name JDBC1] set implCN [list implementationClassName myclass] set jdbcAttrs [list $n1 $implCN]Example output:
{name {JDBC1}} {implementationClassName {myclass}}
n1 = ['name', 'JDBC1'] implCN = ['implementationClassName', 'myclass'] jdbcAttrs = [n1, implCN] print jdbcAttrsExample output:
[['name', 'JDBC1'], ['implementationClassName', 'myclass']]
$AdminConfig create JDBCProvider $node $jdbcAttrs
AdminConfig.create('JDBCProvider', node, jdbcAttrs)
Example output:
JDBC1(cells/mycell/nodes/mynode|resources.xml#JDBCProvider_1)
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object