The other possibilities were JSON/XML/YAML, but I was not successful in my tests.
It does work well using CLI
$ cc get configuration data local OSGI-SPM COMMON-SYSPROPS -o props.json
$ cat props.json
{"java.io.tmpdir":"\"%OSGI_INSTALL_AREA%/workspace/temp\"","osgi.noShutdown":"true","osgi.install.area":"\"%OSGI_INSTALL_AREA%\"","eclipse.ignoreApp":"true"}%
$ cat props2.json
{"java.io.tmpdir":"/tmp","foo":"bar"}% $ cc update configuration data local OSGI-SPM COMMON-SYSPROPS -i props2.json
PENDING_RESTART
$ cc get configuration data local OSGI-SPM COMMON-SYSPROPS
Name Value
osgi.noShutdown true
java.io.tmpdir /tmp
osgi.install.area "%OSGI_INSTALL_AREA%"
eclipse.ignoreApp true
foo bar
But not from a template.
templates:
jvm-configure:
products:
SPM:
default:
configuration:
OSGI-SPM: # this can be any runtime instance JVM, not just SPM
# COMMON-SYSPROPS:
# COMMON-SYSPROPS: | # JVM system properties
# foo=bar1
COMMON-SYSPROPS:
COMMON-SYSPROPS: # using YAML/JSON/XML does NOT work yet!
java.io.tmpdir: /tmp
foo: bar
I’ll take it up with the team.
For now please use text/plain .properties format as it is native for this configuration type.
YAML/JSON/XML formats and all transformations and work only from CLI at the moment but we’ll see if we can fix that.
Thanks
Sergei
#webMethods-General#Command-Central#webMethods#Integration-Server-and-ESB