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

Multiple JavaMail sessions ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-beta-1, 3.0-beta-2, 3.0, 3.1
    • 3.1.1
    • configuration
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: