Permalink
Browse files

Pull data source properties from profile properties.

  • Loading branch information...
1 parent 150eeb8 commit fea9e70844a91ef9ae7a959b9d4db833fd02ee90 @sj26 committed May 16, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/main/webapp/WEB-INF/bdrs-hibernate-datasource.xml
@@ -7,10 +7,13 @@
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
-
- <!-- Database -->
+
+ <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+ <property name="locations" value="classpath:profile.properties" />
+ </bean>
+
+ <!-- Database -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
-
<property name="driverClassName" value="${bdrs.db.driver}"/>
<property name="url" value="${bdrs.db.url}"/>
<property name="username" value="${bdrs.db.user.name}"/>

0 comments on commit fea9e70

Please sign in to comment.