Skip to Content
0
Jul 31, 2016 at 06:01 AM

Environment variables for Java Applications through Cloud Cockpit

654 Views

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

Attachments

2.gif (35.2 kB)
3.gif (24.2 kB)