Announcement Announcement Module
Collapse
No announcement yet.
PropertyPlaceholderConfigurer issue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • PropertyPlaceholderConfigurer issue

    ${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"/>
    Last edited by betopia; Jan 14th, 2011, 08:30 PM.
Working...
X