I need to change my properties based on environment passed as argument to tomEE 6 server.
I have the following code:
String envProperties = System.getProperty("envProperties");
System.out.println("environment properties: "+envProperties);
This gets the property value that is set the first time. When I change the property to something different than the previous one, it doesnt detect the change. how do i get it to pick up any change being passed.
The way I am passing properties right now is by going into server run time configuration in eclipse and passing it
-DenvProperties="dev"
i tried following the post Passing JVM arguments to Tomcat when running as a service?, but i cant find anything matching Tomcat5w or ending with 5w. Please help