Configure a JDBC provider
An example configuring a new JDBC provider follows:
- Identify the parent ID and assign it to the node variable.
This example uses the node configuration object as the parent. One can modify this example to use cell or server configuration object as the parent.set node [$AdminConfig getid /Cell:cellname/Node:nodename/]An example of this output follows:
nodename(cells/cellname/nodes/nodename:node.xml#Node_1)- Identify the required attributes:
$AdminConfig required JDBCProviderAn example of this output follows:
Attribute Type name String implementationClassName String- Set up the required attributes and assign it to the jdbcAttrs variable:
set n1 [list name JDBC1] set implCN [list implementationClassName myclass] set jdbcAttrs [list $n1 $implCN]An example of this output follows:
You can modify the example to setup non-required attributes for JDBC provider.{name {JDBC1}} {implementationClassName {myclass}}- Create a new JDBC provider using node as the parent:
$AdminConfig create JDBCProvider $node $jdbcAttrsAn example of this output follows:
JDBC1(cells/cellname/nodes/nodename:resources.xml#JDBCProvider_1)- Save changes:
$AdminConfig save
Configure a new data source using wsadmin
Configure a new J2CAuthentication data entry using wsadmin
Configure a new WAS40 data source using wsadmin
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.