Profiling in Oracle Helidon
Hello Folks,
Today I'm sharing my learning on "Profiling in Oracle Helidon".
Profiling is a easy concept where where we can keep multiple files are per our environment and execute the application accordingly.
Here we will see the changes in datax variable in profiling.
Profiling can be achieved in two ways i.e.
1. yml file
2. command prompt
In both scenarios we need to keep multiple profiling file (microprofile-config)
I've kept three files.
I'll demonstrate both the scenarios
1. yml file with prod profiling
2. yml with uat profiling
to test the application, I've created a demo controller.
save the project and perfrom,
1. mvn clean install
2. java -jar name_of_the_application.jar
Prod Profiling.
using command prompt.
the exceution command would be
java -jar -Dmp.profile.config=uat devices.jar
java -jar -Dmp.profile.config=prod devices.jar
thank you :)










Comments
Post a Comment