The following example modifies the process definition of a server:
Using Jacl:
set server1 [$AdminConfig getid /Cell:mycell/Node:mynode/Server:server1/]
Example output:
server1(cells/mycell/nodes/mynode/servers/server1:server.xml#Server_1)
Using Jacl:
set processDef [$AdminConfig list JavaProcessDef $server1] set processDef [$AdminConfig showAttribute $server1 processDefinition]
Example output:
(cells/mycell/nodes/mynode/servers/server1:server.xml#JavaProcessDef_1)
This example changes the working directory:
Using Jacl:
$AdminConfig modify $processDef {{workingDirectory c:/temp/user1}}
Using Jacl:
set errFile [list stderrFilename \${LOG_ROOT}/server1/new_stderr.log] set attr [list $errFile] $AdminConfig modify $processDef [subst {{ioRedirect {$attr}}}]
Using Jacl:
$AdminConfig modify $processDef {{execution {{processPriority 15}}}}
Using Jacl:
$AdminConfig modify $processDef {{monitoringPolicy {{maximumStartupAttempts 1}}}}
You can modify this example to change other attributes in the process definition object.
Using Jacl:
$AdminConfig save