-
Bug
-
Resolution: Done
-
Major
-
2.3.2.Final
-
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