[ https://issues.apache.org/jira/browse/CAMEL-12117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon IJskes updated CAMEL-12117: --------------------------------- Attachment: (was: new.txt) > custom javaMailSender does not benefit from URL parameters > ---------------------------------------------------------- > > Key: CAMEL-12117 > URL: https://issues.apache.org/jira/browse/CAMEL-12117 > Project: Camel > Issue Type: Improvement > Components: camel-mail > Affects Versions: 2.20.1 > Reporter: Simon IJskes > Original Estimate: 4h > Remaining Estimate: 4h > > When a custom javaMailSender is used, no property setters are called on the > custom javaMailSender. This in constrast with the DefaultJavaMailSender. > In MailEndpoint.createProducer() the custom javaMailSender does not get the > 'replication' of the configuration properties as the createJavaMailSender() > does. > The benefit of using the URL parameters is, when a custom sender is specified > by reference, and it is pulled from the spring registry, and is marked as > "prototype" scope, it allows the URL to configure this newly created custom > sender, thereby allowing multiple configured smtp producers from camel. -- This message was sent by Atlassian JIRA (v6.4.14#64029)