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.

Reply via email to