Connection-level Interface Commands
You are looking at an older version of the documentation. The latest version is found here.
This page lists command-line interface commands in alphabetical order and their descriptions, examples, and example outputs.
To view the full table, click the expand button in its top right corner
Command | Description | Examples | Example output |
---|---|---|---|
COMMA | Writes a comma plus a space to the buffer | comma; | , |
ENABLE DS | Writes a DS command end to the buffer and adds the buffer as a new line to the output script, then adds a DS enable command to the output script | enable ds; |
|
ENABLE RA | Adds an RA activate command to the output script | enable ra; |
|
EXEC | Adds a given text as a new line to the output CLI script | exec "/some/command"; | |
EXEC BUFFER | Adds the text the buffer contains as a new line to the output CLI script | exec buffer; | |
FAIL | Fails template parsing with a specified message. May be needed for complex property checks like
CODE
| fail "Wrong way"; |
—
|
IFSET | Executes an if statement if a property is specified (or has a not null default value), executes else statement otherwise |
| |
IFTRUE | Executes the if statement if a property is specified (or has a not null default value) and contains the TRUE value, executes the else statement otherwise |
| |
PARAM DS | Writes some predefined DS parameters to the buffer. Acts like a macro for some special cases. See examples |
|
|
PARAM RA | Adds an RA parameter to the output script |
|
|
PROPAGATE RA | Adds a special dataSourceName RA parameter containing the RA name |
| |
REMOVE DS | Adds a DS remove command to the output script |
| |
REMOVE RA | Adds an RA remove command to the output script |
| |
START DS | Writes a DS command start to the buffer | start ds; | /subsystem=datasources/data-source=<name>:add(jndi-name=java:/<name>
, use-java-context=true, |
START RA
| Adds an RA start lines to the output script | start ra "resource-adapter.rar" "class.name"
|
|
WRITE | Writes to the buffer either a text or a property. A special comma token writes a comma plus a space | write comma, "param=", param; | , param=somevalue |
WRITEPROP | Writes to the buffer a property name, an equal sign, and then the property value. For notation convenience, it also can have a text or a comma token as arguments |
writeprop comma, param, ";"
| , param=somevalue; |