I’m converting a working J2EE project from WAS 6.0 to WAS 6.1 using MyEclipseBlue. A crucial part of my app is a JVM environment variable that tells the app if it’s running in local, dev, tst, or prod. I’ve put the environment variable in 6.1 in the same fashion as I did in 6.0, but my app isn’t seeing it. It still comes up null when it calls that value. I’ve restarted the server several times and it still doesn’t show up.
The variable is set using the local admin console: Application servers/server1/Process Definitions/Java Virtual Machine/Custom Properties. It is called in the app with the call: String server = System.getProperty(“com.lilly.isg.env.server”);
Is there something in MyEclipseBlue that is holding me up? Is there a way to restart only the JVM, or does restarting the whole server do that? This worked in RAD, so I know it should work. But for some reason it’s not picking it up in MyEclipseBlue.