示例:控制文件
控制文件可以包含以下属性。
# host of my job scheduler
scheduler-host=zwasc013.lab.ibm.com
# http port of my job scheduler server
scheduler-port=9182
# user id of job submitter
submitter-userid=jobman
# job submitter password
submitter-password=pass2wrd
# enable debug
debug=true
# increase timeout to 8 seconds per message
timeout=8000
带有经过编码的密码的示例控制文件
出于安全目的,可以使用 PropFilePasswordEncoder 实用程序将控制文件中的密码进行编码。对于包含上一示例中控制属性的 WSGrid.cntl 文件,将如下所示调用编码实用程序:
PropFilePasswordEncoder WSGrid.cntl submitter-password
对 WSGrid.cntl 文件运行 PropFilePasswordEncoder 之后,已将 submitter-password 的值编码在 WSGrid.cntl 文件中。 例如:
submitter-password={xor}OTAwPT4tbj4=