Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-683

Spring intergration issue with PropertyPlaceholderConfigurer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0-beta-5
    • 2.3.2.Final
    • jaxrs
    • None

      when i change the Spring original listener to Resteasy listenner the PropertyPlaceholderConfigurer can not work normally.
      My source file is as follow:
      1. web.xml
      <listener>
      <listener-class>
      org.jboss.resteasy.plugins.spring.SpringContextLoaderListener
      </listener-class>
      </listener>

      2. PropertyPlaceholderConfigurer bean config
      <bean name="propertyConfigurer"
      class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
      <property name="locations">
      <list>
      <value>classpath:globalDefinitions.properties</value>
      </list>
      </property>
      </bean>

      3. use PropertyPlaceholder bean config
      <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
      <property name="jndiName" value="${default.datasource.name}"/>
      <property name="lookupOnStartup" value="false"/>
      <property name="cache" value="true"/>
      <property name="proxyInterface" value="javax.sql.DataSource"/>
      </bean>

      4. globalDefinitions.properties
      default.datasource.name = java:comp/env/jdbc/somewhere

            patriot1burke@gmail.com Bill Burke (Inactive)
            mapgisims hongbin chen (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: