Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 34FED6B3C for ; Tue, 28 Jun 2011 19:18:42 +0000 (UTC) Received: (qmail 16644 invoked by uid 500); 28 Jun 2011 19:18:42 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 16508 invoked by uid 500); 28 Jun 2011 19:18:41 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 16491 invoked by uid 99); 28 Jun 2011 19:18:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 19:18:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 19:18:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DF1B3437C4F for ; Tue, 28 Jun 2011 19:18:17 +0000 (UTC) Date: Tue, 28 Jun 2011 19:18:17 +0000 (UTC) From: "Donald Whytock (JIRA)" To: dev@camel.apache.org Message-ID: <2012279705.2874.1309288697910.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1873875940.2868.1309288337469.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CAMEL-4161) make camel-mail dependency on Spring's JavaMailSenderImpl optional MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-4161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Donald Whytock updated CAMEL-4161: ---------------------------------- Attachment: MimeMessagePreparator.java JavaMailSenderImpl.java JavaMailSender.java Attached is a sample set of files that implement a bare minimum of functionality for sending mail. These worked with my testing of changes to camel-mail. > 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 > Priority: Minor > Attachments: JavaMailSender.java, JavaMailSenderImpl.java, MimeMessagePreparator.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. For more information on JIRA, see: http://www.atlassian.com/software/jira