Lightweight and free webMethods IntegrationServer package with a simialar but very reduced API like the official and the one and only WxConfig. It is designed for a simple introduction into configuration management. For advanced usage please switch to the official WxConfig.
Check under releases for a proper release and deploy it. Otherwise you can check out the latest version from GIT and create a link like this:
mklink /J F:\SoftwareAG\IntegrationServer\instances\default\packages\WxConfig F:\GIT-Repos\WxConfig\packages\WxConfig
If you checkout the sources from GitHub you have to compile the source, e.g. with:
C:\SoftwareAG\IntegrationServer\instances\default\bin\jcode.bat makeall WxConfig
Reload WxConfig
You should configure your environmentType like this:
WxConfigLight__WxConfigLight__wx.config.environment.type
with values e.g. like:
DEV, CI, TEST, UAT, QA, PROD
in order to use references like this in your file /config/wxconfig.cnf:
wx.config.env.PROD=wxconfig-PROD.cnf
wx.config.env.TEST=../../../config/packages//wxconfig-TEST.cnf
Then you can define environment specific values which are part of your package or outside or your package.
The most important thing to say is: WxConfigLight is using the "Global Variables" from IntegrationServer. That is the place where updates are executed and where keys are red from!
In order to use a wxconfig.cnf file like with the official WxConfig like this:
myKey=myValue
myPassword=[[encrypted:myPassword]]
myList=1
myList=2
you have to run
It will create Global Variables like this:
WxConfigLight__MyPackage__myKey: myValue WxConfigLight__MyPackage__myPassword: ****** (manage -> overwrite) WxConfigLight__MyPackage__myList__: 1 WxConfigLight__MyPackage__myList__1: 2
After loading that one time you can now work on these Global Variables like you are used to.
Consider that two underlines ("__") are a reserved string. Do not use that in your package names and keys!
Hint: You can drop that stuff if you want with
http://localhost:5555/invoke/wx.config.admin:clearAllVariablesOfPackage?wxConfigPkgName=MyPackage
The following public service should be compatible to the official version (if it works in WxConfigLight it should also work in WxConfig, but not vice versa):
- wx.config.pub:addValue
- wx.config.pub:getEnvironmentType
- wx.config.pub:getValue
- wx.config.pub:getValueList
- wx.config.pub:removeValue
- wx.config.pub:updateValue
- wx.config.pub.autoSetup:_all: Supports only messaging
- wx.config.pub.autoSetup:messaging: Supports only triggers