Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20455118BF for ; Mon, 2 Jun 2014 09:58:22 +0000 (UTC) Received: (qmail 97070 invoked by uid 500); 2 Jun 2014 09:58:21 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 97020 invoked by uid 500); 2 Jun 2014 09:58:21 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 97008 invoked by uid 99); 2 Jun 2014 09:58:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 09:58:21 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ch007m@gmail.com designates 209.85.192.174 as permitted sender) Received: from [209.85.192.174] (HELO mail-pd0-f174.google.com) (209.85.192.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 09:58:19 +0000 Received: by mail-pd0-f174.google.com with SMTP id r10so3239508pdi.19 for ; Mon, 02 Jun 2014 02:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=LEToL30MQG/wlrkUu5Ix6Ezhicg2hO9lE0hSrjpPAa0=; b=cQN+rqEjq4+TvZ2EBrndi39jIQdwN6BuREqm+DdAuUBZa2ZsQidwxFtxlKAR6Syue4 F1DHYrFH2n7um6GXyg3uyJhDeh7MmnUKkTIJORwlb3YA/gq927r7hfh7IOVL1tw1Pdjz r/viN+T4PEyJoXOz6u9ZB/Ym9e9afy3UGlpPweVge39CMU3ODLOWen6g2jEMXdUVOb6Q npO0w4/i+f4YWZUdn0kd5FNr5eJbZd1FLg6nBGBNxVT0VTWZjFKutRslJ/oOfHTDCciE gwzGMWdxGKTx1QnQhYo4myVitdDT0zxkz2KfU26yhrAFzPDHO1wx/6BiEfVuElzLF6qY YweA== MIME-Version: 1.0 X-Received: by 10.66.146.170 with SMTP id td10mr39801685pab.105.1401703075170; Mon, 02 Jun 2014 02:57:55 -0700 (PDT) Received: by 10.70.131.230 with HTTP; Mon, 2 Jun 2014 02:57:55 -0700 (PDT) In-Reply-To: References: <1401702001189-5751814.post@n5.nabble.com> Date: Mon, 2 Jun 2014 11:57:55 +0200 Message-ID: Subject: Re: javaMailSender not configurable as url parameter anymore ? From: Charles Moulliard To: users@camel.apache.org Content-Type: multipart/alternative; boundary=047d7b678880e0529604fad76da8 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b678880e0529604fad76da8 Content-Type: text/plain; charset=UTF-8 You should implement this interface as mentioned in the release note : "The Mail component no longer uses Spring API, which means any custom JavaMailSender should now implement org.apache.camel.component.mail.JavaMailSender instead." On Mon, Jun 2, 2014 at 11:45 AM, Claus Ibsen wrote: > Hi > > See the release notes for each of the Camel releases you upgrade > > For example you can then find what you look for here > http://camel.apache.org/camel-290-release.html > > On Mon, Jun 2, 2014 at 11:40 AM, OrackBahama > wrote: > > Hello, > > > > configuring a custom javaMailSender in Camel java DSL seems to not work > > anymore (Camel 2.13.0). > > > > ... > > .to( > > > "smtp://{{mail.host}}?username=xxx&password=yyy&javaMailSender=#javaMailSender" > > ) > > ... > > > > with > > > > > class="mycompany.mail.javamail.IMAPJavaSenderImpl"> > > > > > > > > throws ugly exceptions at me :-(, saying something about "Could not find > a > > suitable setter for property: > > javaMailSender as there isn't a setter method with same type: > > java.lang.String nor type conversion possible ... > > > > (The class mycompany.mail.javamail.IMAPJavaSenderImpl extends > > org.springframework.mail.javamail.JavaMailSenderImpl) > > > > I'm quite sure, that it worked in former versions of Camel (2.8.x, 2.9.xx > > ?). > > Did I make something wrong with the bean definition ? > > Is the online documentation for this component somehow outdated ? > > > > What is the correct configuration for custom JavaMailSender > implementation ? > > > > Thanks in advance ... > > > > > > > > > > > > > > > > > > -- > > View this message in context: > http://camel.465427.n5.nabble.com/javaMailSender-not-configurable-as-url-parameter-anymore-tp5751814.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cibsen@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > hawtio: http://hawt.io/ > fabric8: http://fabric8.io/ > -- Charles Moulliard Apache Committer / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io --047d7b678880e0529604fad76da8--