on 2016 Jul 31 7:01 AM
Hello,
when setting environment Variables as JVM parameters in the Cloud Cockpit, it seems impossible to use these in java application deployed on the tomcat runtime.
Java Code :
logger.info("Environment Variable ENVVAR1 = " + System.getenv("ENVVAR1"));
Log Ouput :
Is there another way to set environment variables, or is there a better way to pass parameters to a java application on hcp?
Thank You,
Dries
Request clarification before answering.
Hi,
I have used custom properties on a destination and used the destination api to read them. Works well and easy to view what has been set.
Cheers,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
63 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.