Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0-beta-1, 3.0-beta-2, 3.0, 3.1
-
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);
}