Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12117

custom javaMailSender does not benefit from URL parameters

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.20.1
    • None
    • camel-mail
    • None
    • Unknown

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            simijskes Simon IJskes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified