tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r738650 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/MailSessionFactory.java
Date Wed, 28 Jan 2009 22:31:07 GMT
Author: dblevins
Date: Wed Jan 28 22:31:07 2009
New Revision: 738650

URL: http://svn.apache.org/viewvc?rev=738650&view=rev
Log:
Use Session.getInstance rather than Session.getDefaultInstance, so more than one mail session
can be created.

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/MailSessionFactory.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/MailSessionFactory.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/MailSessionFactory.java?rev=738650&r1=738649&r2=738650&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/MailSessionFactory.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/MailSessionFactory.java
Wed Jan 28 22:31:07 2009
@@ -25,7 +25,7 @@
     private final Properties properties = new Properties();
 
     public Session create() {
-        return Session.getDefaultInstance(properties);
+        return Session.getInstance(properties);
     }
 
     public Properties getProperties() {



Mime
View raw message