Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#---------------------------------------------------------
proc readCustomProps {inputFilename customProps} {
#---------------------------------------------------------
puts " "
puts "################################################"
puts "# readCustomProps - [mydate]"
puts "################################################"
if [catch {open $inputFilename r} FP] {
puts "==> ERROR: Unable to open file $inputFilename: $FP"
return -code break
}
set i 0
while {[gets $FP line] >= 0} {
incr i
regexp {([^=]+)=([^=]+)} $line match variable value
set variable [string trim $variable]
set value [string trim $value]
lappend customProps [list [list name $variable] [list required true] [list value $value]]
}
puts "==> Read $i values.\n"
close $FP
return -code ok
}
##############
# MAIN PROGRAM
##############
set inputFilename "myinputs.txt"
# Get custom properties from file
readCustomProps $inputFilename $customProps
set cellName "was9Cell"
set nodeName "was9Node"
set appServerName "myapp_was9_application"
set as [$AdminConfig getid /Cell:$cellName/Node:$nodeName/Server:$appServerName/]
set jvm [$AdminConfig list JavaVirtualMachine $as]
$AdminConfig modify $jvm [subst {{systemProperties {$customProps}}}]
set as [$AdminConfig getid /Cell:$cellName/Node:$nodeName/Server:$appServerName/]
# IBM Service Activity Log
set rls [$AdminConfig list RASLoggingService $as]
$AdminConfig modify $rls [subst {{serviceLog {{enabled true} {name $activitylog} {size 2}}}}]
# IBM Diagnostic Trace Service Log
set ts [$AdminConfig list TraceService $as]
$AdminConfig modify $ts [subst {{traceLog {{fileName $tracelog} {maxNumberOfBackupFiles 1} {rolloverSize 20}}}}]
$AdminConfig save