${profile.oms.ServicesFileName} does not get replaced
The error occurs when the context is loading. If I comment out the Spring Integration component the context is loaded without error.
<context:component-scan base-package="com.foo"/>
<contextroperty-placeholder location="user.properties,profile.properties" />
<beans:bean id="coreServiceLookupProps" class="org.springframework.beans.factory.config.Pr opertiesFactoryBean">
<beansroperty name="location" value="classpath:${profile.omsServicesFileName}"/>
</beans:bean>
<jee:jndi-lookup id="syntheticProductService"
environment-ref="coreServiceLookupProps"
jndi-name="foo/SomeService/remote"
proxy-interface="com.foo.SomeService"
lookup-on-startup="false"/>
<jee:jndi-lookup id="connectionFactory" jndi-name="FooConnectionFactory"/>
<jee:jndi-lookup id="fooTopic" jndi-name="fooTopic"/>
<jms:message-driven-channel-adapter id="jmsin" connection-factory="connectionFactory"
destination="fooTopic"
channel="jmsinToStdoutChannel" />
<channel id="jmsinToStdoutChannel"/>


roperty-placeholder location="user.properties,profile.properties" />
Reply With Quote