Use wsadmin to configure a JDBC provider

To configure a JDBC provider with wsadmin, follow these steps:

  1. On the CL command line, run the STRQSH (Start Qshell) command.

  2. Run the cd command to change to the directory that contains the wsadmin tool:

    cd /QIBM/ProdData/WebASE/ASE5/bin
  3. Start wsadmin.

  4. At the wsadmin prompt, run this command to identify the parent ID and assign it to the node variable:

    set node [$AdminConfig  getid  /Cell:myCell/Node:myNode/Server:myAppSvr/]

    where myCell is the name of the cell that contains your application server, myNode is the name of the node that contains your application server, and myAppSvr is the name of your application server.

  5. Run this command to identify the required attributes:

    $AdminConfig required JDBCProvider

    The command displays this output:

    Attribute                 Type
    name                      String
    implementationClassName   String
  6. Run these commands to set the required attributes and assign them to the jdbcAttrs variable:

    set n1 [list name JDBC1]
    set implCN [list implementationClassName myclass]
    set jdbcAttrs [list $n1 $implCN]

    You can modify the example to set optional attributes for JDBC provider. For a list of all of the attributes of a JDBC provider, run this command:

    $AdminConfig attributes JDBCProvider
  7. Run this command to create the new JDBC provider:

    $AdminConfig create JDBCProvider $server $jdbcAttrs
  8. Run this command to save your changes:

    $AdminConfig save