You can configure a JDBC provider using the wsadmin tool and scripting. Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
Using Jacl:
$AdminTask createJDBCProvider {-interactive}
AdminTask.createJDBCProvider (['-interactive'])
Using Jacl:
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)
Using Jacl:
$AdminConfig required JDBCProvider
print AdminConfig.required('JDBCProvider')
Example output:
Attribute Type name String implementationClassName String
Using Jacl:
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']]
Using Jacl:
$AdminConfig create JDBCProvider $node $jdbcAttrs
AdminConfig.create('JDBCProvider', node, jdbcAttrs)
Example output:
JDBC1(cells/mycell/nodes/mynode|resources.xml#JDBCProvider_1)