Instead of running the application from the beginning with JMX for tomee as CATALINA_OPTS.
-Dcom.sun.management.jmxremote.port=3000 \
-Dcom.sun.management.jmxremote.password.file=password.properties \
-Dcom.sun.management.jmxremote.access.file=access.properties \
-Djavax.net.ssl.keyStore=keystore \
-Djavax.net.ssl.keyStorePassword=password \
I want to enable JMX from my app after the code startup. as the time will log the passwords to log file.