The OpenShift forums have been retired.
You can still read and search them, but for help, 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.