camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <ch0...@gmail.com>
Subject Re: javaMailSender not configurable as url parameter anymore ?
Date Mon, 02 Jun 2014 09:57:55 GMT
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 <claus.ibsen@gmail.com> 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 <jdorfschmid@metadok.de>
> 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
> >
> > <bean id="javaMailSender"
> > class="mycompany.mail.javamail.IMAPJavaSenderImpl">
> >   <property name="sentFolderName" value="${mail.sentFolderName}" />
> > </bean>
> >
> > 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message