Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-994

Multiple JavaMail sessions ignored

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-beta-1, 3.0-beta-2, 3.0, 3.1
    • Fix Version/s: 3.1.1
    • Component/s: configuration
    • Labels:
      None

      Description

      The mail session factory org.apache.openejb.core.MailSessionFactory creates a
      mail session as follows:

      public Session create() {
      return Session.getDefaultInstance(properties);
      }

      This way only one mail session can be configured in openejb.xml, namely the
      default mail session.

      The following modification in MailSessionFactory allows to configure
      multiple mail sessions in openejb.xml:

      public Session create() {
      return Session.getInstance(properties);
      }

        Attachments

          Activity

            People

            • Assignee:
              dblevins David Blevins
              Reporter:
              dblevins David Blevins
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: