Why and when to perform this task
Perform this task if you want to create an object. To create new objects from the default template, use the create command. Alternatively, you can create objects using an existing object as a template with the createFromTemplate command.Steps for this task
Using Jacl:
$AdminConfig listTemplates JDBCProviderwhere:
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object representing the WebSphere Application Server configuration |
listTemplates | is an AdminConfig command |
JDBCProvider | is an object type |
Using Jacl:
set n1 [$AdminConfig getid /Node:mynode/]where:
set | is a Jacl command |
$ | is a Jacl operator for substituting a variable name with its value |
n1 | is a variable name |
AdminConfig | is an object representing the WebSphere Application Server configuration |
getid | is an AdminConfig command |
Node | is an object type |
mynode | is the host name of the node where the new object is added |
Using Jacl:
set t1 [$AdminConfig listTemplates JDBCProvider "DB1 Universal JDBC Driver Provider (XA)"]where:
set | is a Jacl command |
$ | is a Jacl operator for substituting a variable name with its value |
t1 | is a variable name |
AdminConfig | is an object representing the WebSphere Application Server configuration |
listTemplates | is an AdminConfig command |
JDBCProvider | is an object type |
DB1 JDBC Provider (XA) | is the name of the template to use for the new object |
Using Jacl:
$AdminConfig createUsingTemplate JDBCProvider $n1 {{name newdriver}} $t1where:
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object representing the WebSphere Application Server configuration |
createUsingTemplate | is an AdminConfig command |
JDBCProvider | is an object type |
n1 | evaluates the ID of the host node specified in step number 3 |
name | is an attribute of JDBCProvider objects |
newdriver | is the value of the name attribute |
t1 | evaluates the ID of the template specified in step number 4 |
Note: All create commands use a template unless there are no templates to use. If a default template exists, the command creates the object.
Using Jacl:
$AdminConfig save