Injecting System properties to Integration Studio-Embedded WSO2 MI Runtime
In this blog let us explore how we can read System properties from a property file (stored in the system) and pass them as arguments to the Integration Studio’s Embedded MI runtime.
When using a General WSO2 MI Server (not the embedded runtime) we can point the properties file to the MI Server by appending the following argument to the micro-integrator.bat/ micro-integrator.sh file,
-Dproperties.file.path=<Path_to_file>
MI will read the system properties from the properties file and they can be referred in the mediation flow.
To do the same with the Embedded runtime in the Integration Studio follow the below steps,
- You should run the server at least once using Integration Studio (otherwise the Micro Integrator 1.20 entry will not be displayed under Generic Server).
- Navigate to Run -> Run Configurations section.
- Then select the Micro Integration Server 1.2.0 under the Generic Server.
- Navigate to the Arguments tab and add the following lines to the end of VM arguments section,
-Dproperties.file.path=<Path_to_file>
Please refer to the WSO2 Official Documentation [1] for further details on injecting parameters using file.
Thank you for reading!!!
[1] https://ei.docs.wso2.com/en/latest/micro-integrator/develop/injecting-parameters/#using-a-file