I have an environment variable setup in my tomcat context file as

Code:
<Environment name="envName" value="local" type="java.lang.String" override="true"/>
I am able to read this in my spring-context.xml file by

Code:
<context:property-placeholder location="classpath:app-${envName}.properties"/>
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.

Thanks