Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-457

Must be able to configure JavaMailSender used by NotificationJob

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.5, 1.2.0-M1
    • Fix Version/s: 1.2.0-M1
    • Component/s: core
    • Labels:
      None

      Description

      In NotificationJob.executeSingle we instantiate a new JavaMailSenderImpl() which we then populate with some values. There are however other properties [1] that can be set on the Session. Some of them are very useful, especially in production environments.

      In particular, the 'mail.smtp.connectiontimeout' should be set to a different value than the default 'infinite' which would cause the thread to hang, waiting for a unresponsive SMTP server (either misconfiguration of server down).

      I will try to come up with a patch towards the end of the week if nobody beats me to it.

      [1] https://javamail.java.net/nonav/docs/api/

        Attachments

        1. syncope-457.patch
          17 kB
          Hadrian Zbarcea

          Issue Links

            Activity

              People

              • Assignee:
                hadrian Hadrian Zbarcea
                Reporter:
                hadrian Hadrian Zbarcea
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: