Specifying a context environment when running a route as an ESB microservice

Question

Assuming a route with several Context Environments (such as TEST, DEV, PROD), built as an ESB Microservice (Spring Boot), how do I run this ESB Microservice with a specific Context Environment?

Answer

Run the ESB Microservice jar with the following parameter:

--spring.config.name=contexts/EnvName

 

For example:

java -jar mySpringBootRoute.jar --spring.config.name=contexts/TEST
Version history
Revision #:
4 of 4
Last update:
‎09-29-2018 12:15 AM
Updated by:
 
Labels (2)