I have an environment variable setup in my tomcat context file as
I am able to read this in my spring-context.xml file by
<Environment name="envName" value="local" type="java.lang.String" override="true"/>
This works fine but when I deploy the application in websphere I have the same variable defined as a jndi entry. So obviously it doesnt works anymore and spring is not able to find the property value. How can i retrieve a jndi based string value and use that in spring expressions to load the correct properties file.