Permalink
Browse files

Pull email properties from profile properties.

  • Loading branch information...
1 parent 7f4eb65 commit 150eeb8a1df27f5051bbe61e38424962cdd01d9c @sj26 committed May 16, 2011
Showing with 10 additions and 8 deletions.
  1. +10 −8 src/main/webapp/WEB-INF/bdrs-email.xml
@@ -9,13 +9,15 @@
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<context:annotation-config/>
-
- <bean id="emailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
- <!--<property name="host" value="${bdrs.default.mail.server}"/>
- <property name="port" value="${bdrs.default.mail.port}"/>-->
- <property name="host" value="192.168.2.1"/>
- <property name="port" value="25"/>
+
+ <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+ <property name="locations" value="classpath:profile.properties" />
</bean>
-
- <bean id="emailService" class="au.com.gaiaresources.bdrs.email.impl.EmailServiceImpl" init-method="init"/>
+
+ <bean id="emailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
+ <property name="host" value="${bdrs.default.mail.server}"/>
+ <property name="port" value="${bdrs.default.mail.port}"/>
+ </bean>
+
+ <bean id="emailService" class="au.com.gaiaresources.bdrs.email.impl.EmailServiceImpl" init-method="init"/>
</beans>

0 comments on commit 150eeb8

Please sign in to comment.