Hi
How do I export an environment variable when using the embedded tomcat on jboss-4.2.2.GA. In my old setup I would simple set CATALINA_OPTS="-Djdo.host=10.20.128.70" in my catalina.sh. I do not want JBoss to pick up the variable so I can not export it in JAVA_OPTS in run.sh and I have tried exporting CATALINA_OPTS in the run.sh but it does not seem to work. Again in summary, I do not want JBoss to pick up the environment variable, only the embedded tomcat.
Thanks in advance
You are asking the impossible. System properties are managed by the JVM, and all of the code running in the JVM has access to the property. This includes the Tomcat code, the JBossAS code, and every application deployed.