Results 1 to 1 of 1

Thread: PropertyPlaceholderConfigurer issue

  1. #1
    Join Date
    Jan 2011
    Posts
    1

    Angry PropertyPlaceholderConfigurer not working

    ${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 at 07:30 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •