continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Lamy (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (CONTINUUM-1842) Migration to Spring mail sender
Date Wed, 24 Sep 2008 22:23:45 GMT

    [ http://jira.codehaus.org/browse/CONTINUUM-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148926#action_148926
] 

Olivier Lamy commented on CONTINUUM-1842:
-----------------------------------------

I can't remove the plexus-mail dependency (it has to be done in redback too).
If I override the current mailSender with :
{code:xml}
  <bean id="mailSession" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:comp/env/mail/Session">
    </property>
  </bean>  
  
  <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
    <property name="session" ref="mailSession"/>
  </bean> 
{code}
This works for continuum mail notification but not for redback registration :

{code}
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'mailer': FactoryBean threw exception on object creation; nest
ed exception is org.springframework.beans.TypeMismatchException: Failed to conve
rt value of type [org.springframework.mail.javamail.JavaMailSenderImpl] to requi
red type [org.codehaus.plexus.mailsender.MailSender]; nested exception is java.l
ang.IllegalArgumentException: Cannot convert value of type [org.springframework.
mail.javamail.JavaMailSenderImpl] to required type [org.codehaus.plexus.mailsend
er.MailSender]: no matching editors or conversion strategy found
        at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$
{code}


> Migration to Spring mail sender 
> --------------------------------
>
>                 Key: CONTINUUM-1842
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-1842
>             Project: Continuum
>          Issue Type: Improvement
>          Components: Notifier - Mail
>    Affects Versions: 1.1
>            Reporter: Olivier Lamy
>            Assignee: Olivier Lamy
>             Fix For: 1.2.1
>
>
> Remove usage of plexus-mail-sender to Spring JavaMailSender
> See related [thread|http://markmail.org/message/u25khnkwoiesp7gi?q=Mail+notification+templates+override]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message