-
Feb 15th, 2008, 05:38 AM
#1
Unable to read env. variable through PropertyPlaceholderConfigurer
I am trying to read an environment variable in our application running on WAS6.0. While the same configuration runs fine on WAS6.1 it is unable to recognize the same env variable with the former. Here is the code :
<bean class="org.springframework.beans.factory.config.Pr opertyPlaceholderConfigurer">
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>
<bean class="MyFile">
<constructor-arg type="java.lang.String" value="${cps.env}"/>
</bean>
I know this doesnot works with Sun JDK1.4, but we are pointing to WAS6 JDK only.
Kindly help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules