git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@707526
13f79535-47bb-0310-9956-
ffa450edef68
</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>
<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>