I have the following code:
<bean id="jdbcPropertyConfigurer" class="org.springframework.beans.factory.config.Pr opertyPlaceholderConfigurer">
<!--<property name="location"><value>/WEB-INF/classes/bhff.jdbc.properties</value></property>-->
<property name="location"><value>bhff.jdbc.properties</value></property>
</bean>
<!-- Local DataSource that works in any environment -->
<!-- Note that DriverManagerDataSource does not pool; it is not intended for production -->
<!-- See JPetStore for an example of using Commons DBCP BasicDataSource as alternative -->
<!-- See Image Database for an example of using C3P0 ComboPooledDataSource as alternative -->
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverM anagerDataSource">
<property name="driverClassName"><value>${jdbc.driverClassNa me}</value></property>
<property name="url"><value>${jdbc.url}</value></property>
<property name="username"><value>${jdbc.username}</value></property>
<property name="password"><value>${jdbc.password}</value></property>
</bean>
When I uncomment the >/WEB-INF/classes/bhff.jdbc.properties property, and put that property into my war, this works fine. But I need to be able to change these values without rebuilding and redeploying my code. And spring can't seem to find this when I put in into my server/default/conf directory for JBoss.
Also, I am planning to move to WAS5 and have to figure out where to be able to put this file to access it in WAS as well.


Reply With Quote