You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Resolved) (JIRA)" <ji...@apache.org> on 2011/11/26 13:23:39 UTC

[jira] [Resolved] (CAMEL-4161) make camel-mail dependency on Spring's JavaMailSenderImpl optional

     [ https://issues.apache.org/jira/browse/CAMEL-4161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-4161.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.10)
                   2.9.0

Thanks Donald.

I removed the Spring JAR dep complete, and provided a DefaultMailSender which uses the JDK API for sending the mail. There is no so much logic needed to do this.
                
> make camel-mail dependency on Spring's JavaMailSenderImpl optional
> ------------------------------------------------------------------
>
>                 Key: CAMEL-4161
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4161
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-mail
>            Reporter: Donald Whytock
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.0
>
>         Attachments: JavaMailSender.java, JavaMailSenderImpl.java, MailConfiguration.java, MailConsumer.java, MailEndpoint.java, MailProducer.java, MimeMessagePreparator.java, diff_MailConfiguration.txt, diff_MailConsumer.txt, diff_MailEndpoint.java, diff_MailProducer.java, new_DefaultJavaMailSender.java, new_JavaMailSender.java, new_MimeMessagePreparator.java, new_SpringJavaMailSender.java
>
>
> camel-mail is currently dependent on org.springframework.mail.javamail.JavaMailSenderImpl, but uses relatively little of its functionality.  In many cases it may be sufficient to fall back on a default JavaMailSenderImpl that only implements the bare minimum necessary to send mail, similar to how Management functionality falls back on DefaultManagementStrategy if the Spring JMX implementation is not available.
> This would make camel-mail use possible in an otherwise Spring-less application.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira