Fixes the registration problem since moving redback to spring

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@707526 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James William Dumay 2008-10-24 02:55:22 +00:00
parent 338acb23ec
commit 13ccfecb4a
2 changed files with 9 additions and 8 deletions

View File

@ -58,14 +58,6 @@
</configuration>
</component>
<component>
<role>org.codehaus.plexus.mailsender.MailSender</role>
<implementation>org.codehaus.plexus.mailsender.javamail.JndiJavamailMailSender</implementation>
<configuration>
<jndiSessionName>java:comp/env/mail/Session</jndiSessionName>
</configuration>
</component>
<component>
<role>org.codehaus.plexus.jdo.JdoFactory</role>
<role-hint>archiva</role-hint>

View File

@ -53,4 +53,13 @@
<ref bean="securitySystem"/>
</constructor-arg>
</bean>
<bean id="mailSession" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:comp/env/mail/Session">
</property>
</bean>
<bean name="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="session" ref="mailSession"/>
</bean>
</beans>