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 #:
3 of 3
Last update:
‎10-27-2017 03:03 PM
Updated by:
 
Labels (1)
Contributors