The OpenShift forums have been retired, but you can still read and search them.
For the most up-to-date information about how to use OpenShift please visit

What is the convenient way to set java system property value from env variable in Tomcat cartridge?

I want to set system property h2.bindAddress to OPENSHIFT_INTERNAL_IP env variable, what is the most convenient way to do it?

In .openshift/action_hooks file add this line export JAVA_OPTS="-Dh2.bindAddress=$OPENSHIFT_INTERNAL_IP"

Thanks for posting that! Looks like it should go into the pre_start_jbossews-1.0 hook.