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 JDBC provider:
Steps for this task
Using Jacl:
set node [$AdminConfig getid /Cell:mycell/Node:mynode/]
node = AdminConfig.getid('/Cell:mycell/Node:mynode/') print node
mynode(cells/mycell/nodes/mynode|node.xml#Node_1)
Using Jacl:
$AdminConfig required JDBCProvider
print AdminConfig.required('JDBCProvider')
Attribute Type name String implementationClassName String
Using Jacl:
set n1 [list name JDBC1] set implCN [list implementationClassName myclass] set jdbcAttrs [list $n1 $implCN]
{name {JDBC1}} {implementationClassName {myclass}}
n1 = ['name', 'JDBC1'] implCN = ['implementationClassName', 'myclass'] jdbcAttrs = [n1, implCN] print jdbcAttrs
[['name', 'JDBC1'], ['implementationClassName', 'myclass']]
Using Jacl:
$AdminConfig create JDBCProvider $node $jdbcAttrs
AdminConfig.create('JDBCProvider', node, jdbcAttrs)
JDBC1(cells/mycell/nodes/mynode|resources.xml#JDBCProvider_1)
What to do next
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object